Skip to content

Commit

Permalink
Attempted fix for PHP 8.2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 5, 2023
1 parent 53eb47c commit 7e3ea19
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,16 @@ jobs:
- name: Syntax check PHP
run: bash vendor/bin/check-syntax-php.sh

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

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

- name: Save coverage data
if: ${{ matrix.php-versions == '8.0' && matrix.operating-system == 'ubuntu-latest' }}
if: ${{ matrix.php-versions == '8.1' && matrix.operating-system == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
name: build-data
Expand Down

0 comments on commit 7e3ea19

Please sign in to comment.