Skip to content

Commit 5bdaff8

Browse files
committed
Run coverage on PHP 8.3
1 parent 7bdeb1e commit 5bdaff8

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
pull_request:
66

7+
env:
8+
COVERAGE_PHP_VERSION: "8.3"
9+
710
jobs:
811
phpunit:
912
name: PHPUnit
@@ -40,16 +43,16 @@ jobs:
4043

4144
- name: Run PHPUnit
4245
run: vendor/bin/phpunit
43-
if: ${{ matrix.php-version != '8.1' }}
46+
if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }}
4447

4548
- name: Run PHPUnit with coverage
4649
run: |
4750
mkdir -p build/logs
4851
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
49-
if: ${{ matrix.php-version == '8.1' }}
52+
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
5053

5154
- name: Upload coverage report to Coveralls
5255
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
5356
env:
5457
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
if: ${{ matrix.php-version == '8.1' }}
58+
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}

0 commit comments

Comments
 (0)