strategy:
fail-fast: false
matrix:
- php-versions: ['7.2', '7.3', '7.4']
+ php-versions: ['7.3', '7.4', '8.0']
steps:
- name: Checkout
uses: actions/checkout@v2
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- tools: pecl
+ tools: pecl, composer:v1
extensions: pdo_mysql, gd, zip, opcache, ctype, pcntl, ldap, apcu, memcached, redis, imagick, memcache
coverage: xdebug
ini-values: apc.enabled=1, apc.enable_cli=1
- name: Install dependencies
run: composer install --prefer-dist
+ - name: Setup PHPUnit 8
+ run: bin/dev/setup-phpunit.sh
+
- name: Copy default Friendica config
run: cp config/local-sample.config.php config/local.config.php
run: |
mysql -h"127.0.0.1" -P"$PORT" -utest -ptest test < database.sql
- - name: Test with Parallel-lint
- 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: $(git rev-parse --show-toplevel)/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
env:
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
MYSQL_PASSWORD: test
MYSQL_USER: test
REDIS_PORT: ${{ job.services.redis.ports[6379] }}
+ REDIS_HOST: 127.0.0.1
MEMCACHED_PORT: ${{ job.services.memcached.ports[11211] }}
MEMCACHE_PORT: ${{ job.services.memcached.ports[11211] }}