build future-proofing
This commit is contained in:
parent
64e6460f22
commit
bfce3fa82f
1 changed files with 7 additions and 3 deletions
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@master
|
||||
with:
|
||||
php-version: 8.1
|
||||
php-version: 8.3
|
||||
- name: Format
|
||||
run: ./vendor/bin/php-cs-fixer fix && git diff --exit-code
|
||||
|
||||
|
@ -122,9 +122,13 @@ jobs:
|
|||
if [[ "${{ matrix.database }}" == "sqlite" ]]; then
|
||||
export TEST_DSN="sqlite:data/shimmie.sqlite"
|
||||
fi
|
||||
vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover
|
||||
if [[ "${{ matrix.php }}" == "8.3" ]]; then
|
||||
vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover
|
||||
else
|
||||
vendor/bin/phpunit --configuration tests/phpunit.xml
|
||||
fi
|
||||
|
||||
- name: Upload coverage
|
||||
if: matrix.php == '8.1'
|
||||
if: matrix.php == '8.3'
|
||||
run: |
|
||||
vendor/bin/ocular code-coverage:upload --format=php-clover data/coverage.clover
|
||||
|
|
Reference in a new issue