File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments