Run tests with PHP8 on GitHub Actions

This commit is contained in:
Frédéric Guillot 2023-07-01 18:04:24 -07:00 committed by Frédéric Guillot
parent 22f3b03830
commit bb4b547ffe
2 changed files with 33 additions and 0 deletions

View File

@ -33,6 +33,28 @@ jobs:
- name: Integration tests with Sqlite
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:
runs-on: ubuntu-latest
container:

View File

@ -24,6 +24,17 @@ jobs:
- name: Unit tests with Sqlite
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:
runs-on: ubuntu-latest
container: