Enable PHP 8.0 Auto-Test

This commit is contained in:
Philipp 2021-04-01 22:16:16 +02:00
parent 4b38b6aa16
commit 8cab5edea9
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
5 changed files with 46 additions and 60 deletions

View file

@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.2', '7.3', '7.4']
php-versions: ['7.2', '7.3', '7.4', '8.0']
steps:
- name: Checkout
uses: actions/checkout@v2
@ -62,6 +62,11 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist
- name: Install PHPUnit 8
run: curl -O -L https://phar.phpunit.de/phpunit-8.phar
&& chmod +x phpunit-8.phar
&& mv phpunit-8.phar /usr/local/bin/phpunit
- name: Copy default Friendica config
run: cp config/local-sample.config.php config/local.config.php
@ -83,7 +88,7 @@ jobs:
run: vendor/bin/parallel-lint --exclude vendor/ --exclude view/asset/ .
- name: Test with phpunit
run: vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
run: /usr/local/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
env:
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}