2121 runs-on : ubuntu-latest
2222 strategy :
2323 matrix :
24- php : [ '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '8.0 ', '8.1 ', '8.2 ', '8.3 ', '8.4' ]
24+ php : [ '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4 ', '8.0 ', '8.1 ', '8.2 ', '8.4' ]
2525 phpcs_version : [ 'lowest', 'dev-master' ]
2626 extensions : [ '' ]
2727 coverage : [false]
3333 coverage : true # Make sure coverage is recorded for this too.
3434
3535 # Run code coverage builds against high/low PHP and high/low PHPCS.
36- # Note: Until PHPCS supports PHPUnit 9, we cannot run code coverage on PHP 8.0+.
3736 - php : ' 5.4'
3837 phpcs_version : ' dev-master'
3938 extensions : ' '
@@ -42,11 +41,11 @@ jobs:
4241 phpcs_version : ' lowest'
4342 extensions : ' '
4443 coverage : true
45- - php : ' 7.4 '
44+ - php : ' 8.3 '
4645 phpcs_version : ' dev-master'
4746 extensions : ' '
4847 coverage : true
49- - php : ' 7.4 '
48+ - php : ' 8.3 '
5049 phpcs_version : ' lowest'
5150 extensions : ' '
5251 coverage : true
@@ -86,20 +85,12 @@ jobs:
8685 if : ${{ matrix.phpcs_version != 'lowest' }}
8786 run : composer require squizlabs/php_codesniffer:"${{ matrix.phpcs_version }}" --no-update --no-scripts --no-interaction
8887
89- - name : Install Composer dependencies (PHP < 8.0 )
90- if : ${{ matrix.php < 8.0 }}
88+ - name : Install Composer dependencies
9189 uses : ramsey/composer-install@v2
9290 with :
9391 # Bust the cache at least once a month - output format: YYYY-MM.
9492 custom-cache-suffix : $(date -u "+%Y-%m")
9593
96- - name : Install Composer dependencies (PHP >= 8.0)
97- if : ${{ matrix.php >= 8.0 }}
98- uses : ramsey/composer-install@v2
99- with :
100- composer-options : --ignore-platform-req=php+
101- custom-cache-suffix : $(date -u "+%Y-%m")
102-
10394 - name : " Set PHPCS version (lowest)"
10495 if : ${{ matrix.phpcs_version == 'lowest' }}
10596 run : composer update squizlabs/php_codesniffer --prefer-lowest --ignore-platform-req=php+ --no-scripts --no-interaction
@@ -108,19 +99,14 @@ jobs:
10899 if : ${{ matrix.phpcs_version == 'dev-master' }}
109100 run : composer lint -- --checkstyle | cs2pr
110101
111- - name : Run the unit tests without code coverage - PHP 5.4 - 8.0
112- if : ${{ matrix.php < '8.1' && matrix. coverage == false }}
102+ - name : Run the unit tests without code coverage
103+ if : ${{ matrix.coverage == false }}
113104 run : composer run-tests
114105
115- - name : Run the unit tests with code coverage - PHP 5.4 - 8.0
116- if : ${{ matrix.php < '8.1' && matrix. coverage == true }}
106+ - name : Run the unit tests with code coverage
107+ if : ${{ matrix.coverage == true }}
117108 run : composer coverage
118109
119- # Until PHPCS supports PHPUnit 9, we cannot run code coverage on PHP 8.0+.
120- - name : Run the unit tests without code coverage - PHP >= 8.1
121- if : ${{ matrix.php >= '8.1' && matrix.coverage == false }}
122- run : composer run-tests -- --no-configuration --bootstrap=./Tests/bootstrap.php --dont-report-useless-tests
123-
124110 - name : Send coverage report to Codecov
125111 if : ${{ success() && matrix.coverage == true }}
126112 uses : codecov/codecov-action@v3
0 commit comments