Run tests with PHP8 on GitHub Actions
This commit is contained in:
committed by
Frédéric Guillot
parent
22f3b03830
commit
bb4b547ffe
22
.github/workflows/integration_tests.yml
vendored
22
.github/workflows/integration_tests.yml
vendored
@@ -33,6 +33,28 @@ jobs:
|
|||||||
- name: Integration tests with Sqlite
|
- name: Integration tests with Sqlite
|
||||||
run: ./vendor/bin/phpunit -c tests/integration.sqlite.xml
|
run: ./vendor/bin/phpunit -c tests/integration.sqlite.xml
|
||||||
|
|
||||||
|
Sqlite-PHP8:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Validate composer.json and composer.lock
|
||||||
|
run: composer validate
|
||||||
|
- name: Install dependencies
|
||||||
|
run: composer install --prefer-dist --no-progress --no-suggest
|
||||||
|
- name: Install Apache PHP module
|
||||||
|
run: sudo apt install -y libapache2-mod-php
|
||||||
|
- name: Start Apache
|
||||||
|
run: sudo systemctl start apache2
|
||||||
|
- name: Setup document root
|
||||||
|
run: |
|
||||||
|
sudo rm -rf /var/www/html
|
||||||
|
sudo cp -R $GITHUB_WORKSPACE /var/www/html
|
||||||
|
sudo cp tests/configs/config.sqlite.php /var/www/html/config.php
|
||||||
|
sudo chown -R www-data:www-data /var/www/html/data
|
||||||
|
ls -l /var/www/html/
|
||||||
|
- name: Integration tests with Sqlite
|
||||||
|
run: ./vendor/bin/phpunit -c tests/integration.sqlite.xml
|
||||||
|
|
||||||
Postgres:
|
Postgres:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
|||||||
11
.github/workflows/unit_tests.yml
vendored
11
.github/workflows/unit_tests.yml
vendored
@@ -24,6 +24,17 @@ jobs:
|
|||||||
- name: Unit tests with Sqlite
|
- name: Unit tests with Sqlite
|
||||||
run: ./vendor/bin/phpunit -c tests/units.sqlite.xml
|
run: ./vendor/bin/phpunit -c tests/units.sqlite.xml
|
||||||
|
|
||||||
|
Sqlite-PHP8:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Validate composer.json and composer.lock
|
||||||
|
run: composer validate
|
||||||
|
- name: Install dependencies
|
||||||
|
run: composer install --prefer-dist --no-progress --no-suggest
|
||||||
|
- name: Unit tests with Sqlite
|
||||||
|
run: ./vendor/bin/phpunit -c tests/units.sqlite.xml
|
||||||
|
|
||||||
Postgres:
|
Postgres:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
|||||||
Reference in New Issue
Block a user