| Zeile 5... |
Zeile 5... |
| 5 |
name: PHP ${{ matrix.php-versions }}
|
5 |
name: PHP ${{ matrix.php-versions }}
|
| 6 |
runs-on: ubuntu-latest
|
6 |
runs-on: ubuntu-latest
|
| 7 |
strategy:
|
7 |
strategy:
|
| 8 |
fail-fast: false
|
8 |
fail-fast: false
|
| 9 |
matrix:
|
9 |
matrix:
|
| 10 |
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
|
10 |
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
|
| 11 |
steps:
|
11 |
steps:
|
| 12 |
- name: Checkout
|
12 |
- name: Checkout
|
| 13 |
uses: actions/checkout@v2
|
13 |
uses: actions/checkout@v2
|
| 14 |
- name: Setup PHP with Composer and extensions
|
14 |
- name: Setup PHP with Composer and extensions
|
| 15 |
with:
|
15 |
with:
|
| Zeile 30... |
Zeile 30... |
| 30 |
PHP_VERSION: ${{ matrix.php-versions }}
|
30 |
PHP_VERSION: ${{ matrix.php-versions }}
|
| 31 |
run: composer install --no-progress --prefer-dist --optimize-autoloader $(if [ "$PHP_VERSION" == "8.0" || "$PHP_VERSION" == "8.1" ]; then echo "--ignore-platform-reqs"; fi;)
|
31 |
run: composer install --no-progress --prefer-dist --optimize-autoloader $(if [ "$PHP_VERSION" == "8.0" || "$PHP_VERSION" == "8.1" ]; then echo "--ignore-platform-reqs"; fi;)
|
| 32 |
- name: Run tests with code coverage
|
32 |
- name: Run tests with code coverage
|
| 33 |
env:
|
33 |
env:
|
| 34 |
PHP_VERSION: ${{ matrix.php-versions }}
|
34 |
PHP_VERSION: ${{ matrix.php-versions }}
|
| 35 |
run: vendor/bin/phpunit $(if [ "$PHP_VERSION" == "7.2" ]; then echo "-c phpunit.xml.dist.php72"; fi;) --coverage-clover build/logs/clover.xml
|
35 |
run: vendor/bin/phpunit $(if [ "$PHP_VERSION" == "7.2" ]; then echo "-c phpunit.xml.dist.php72"; fi;) $(if [ "$PHP_VERSION" == "7.3" ]; then echo "-c phpunit.xml.dist.php8"; fi;) $(if [ "$PHP_VERSION" == "7.4" ]; then echo "-c phpunit.xml.dist.php8"; fi;) $(if [ "$PHP_VERSION" == "8.0" ]; then echo "-c phpunit.xml.dist.php8"; fi;) --coverage-clover build/logs/clover.xml
|
| 36 |
- name: Install PHP Coveralls library
|
36 |
- name: Install PHP Coveralls library
|
| 37 |
env:
|
37 |
env:
|
| 38 |
PHP_VERSION: ${{ matrix.php-versions }}
|
38 |
PHP_VERSION: ${{ matrix.php-versions }}
|
| 39 |
run:
|
39 |
run:
|
| 40 |
composer global require --dev php-coveralls/php-coveralls
|
40 |
composer global require --dev php-coveralls/php-coveralls
|