Skip to content

Commit fc71570

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

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/php.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
basic-tests:
1515
name: Syntax and unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}
1616
runs-on: ${{ matrix.operating-system }}
17+
env:
18+
NO_COVERAGE: '--no-coverage'
1719
strategy:
1820
fail-fast: false
1921
matrix:
@@ -68,17 +70,17 @@ jobs:
6870
run: bash vendor/bin/check-syntax-php.sh
6971

7072
- name: Decide whether to run code coverage or not
71-
if: ${{ matrix.php-versions != '8.0' || matrix.operating-system != 'ubuntu-latest' }}
73+
if: ${{ matrix.php-versions == '8.1' || matrix.operating-system == 'ubuntu-latest' }}
7274
run: |
73-
echo "NO_COVERAGE=--no-coverage" >> $GITHUB_ENV
75+
echo "NO_COVERAGE=" >> $GITHUB_ENV
7476
7577
- name: Run unit tests
7678
run: |
7779
echo $NO_COVERAGE
7880
./vendor/bin/phpunit $NO_COVERAGE
7981
8082
- name: Save coverage data
81-
if: ${{ matrix.php-versions == '8.0' && matrix.operating-system == 'ubuntu-latest' }}
83+
if: ${{ matrix.php-versions == '8.1' && matrix.operating-system == 'ubuntu-latest' }}
8284
uses: actions/upload-artifact@v3
8385
with:
8486
name: build-data

0 commit comments

Comments
 (0)