Run tests with PHP8 on GitHub Actions
This commit is contained in:
parent
22f3b03830
commit
bb4b547ffe
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue