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