Skip to content

Commit 2523634

Browse files
committed
Attempted fix for PHP 8.2 tests
1 parent 53eb47c commit 2523634

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/php.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,16 @@ jobs:
6767
- name: Syntax check PHP
6868
run: bash vendor/bin/check-syntax-php.sh
6969

70-
- name: Decide whether to run code coverage or not
71-
if: ${{ matrix.php-versions != '8.0' || matrix.operating-system != 'ubuntu-latest' }}
72-
run: |
73-
echo "NO_COVERAGE=--no-coverage" >> $GITHUB_ENV
70+
- name: Run unit tests with coverage
71+
if: ${{ matrix.php-versions == '8.1' && matrix.operating-system == 'ubuntu-latest' }}
72+
run: ./vendor/bin/phpunit
7473

75-
- name: Run unit tests
76-
run: |
77-
echo $NO_COVERAGE
78-
./vendor/bin/phpunit $NO_COVERAGE
74+
- name: Run unit tests (no coverage)
75+
if: ${{ matrix.php-versions != '8.1' || matrix.operating-system != 'ubuntu-latest' }}
76+
run: ./vendor/bin/phpunit --no-coverage
7977

8078
- name: Save coverage data
81-
if: ${{ matrix.php-versions == '8.0' && matrix.operating-system == 'ubuntu-latest' }}
79+
if: ${{ matrix.php-versions == '8.1' && matrix.operating-system == 'ubuntu-latest' }}
8280
uses: actions/upload-artifact@v3
8381
with:
8482
name: build-data

0 commit comments

Comments
 (0)