Skip to content

Commit

Permalink
build future-proofing
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 17, 2023
1 parent 64e6460 commit bfce3fa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit bfce3fa

Please sign in to comment.