mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:10:11 +00:00
Enable PHP 8.0 Auto-Test
This commit is contained in:
parent
4b38b6aa16
commit
8cab5edea9
5 changed files with 46 additions and 60 deletions
9
.github/workflows/php.yml
vendored
9
.github/workflows/php.yml
vendored
|
@ -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] }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue