3232 # @link https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix
3333 #
3434 # The matrix is set up so as not to duplicate the builds which are run for code coverage.
35- php : ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '8.0 ', '8.1 ', '8.2 ', '8.3 ', '8.4']
35+ php : ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4 ', '8.0 ', '8.1 ', '8.2 ', '8.4']
3636 phpcs_version : ['lowest', 'dev-master']
3737
3838 name : " Test${{ matrix.phpcs_version == 'dev-master' && ' + Lint' || '' }}: PHP ${{ matrix.php }} - PHPCS ${{ matrix.phpcs_version }}"
@@ -67,21 +67,12 @@ jobs:
6767
6868 # Install dependencies and handle caching in one go.
6969 # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
70- - name : Install Composer dependencies - normal
71- if : ${{ startsWith( matrix.php, '8' ) == false }}
70+ - name : Install Composer dependencies
7271 uses : " ramsey/composer-install@v2"
7372 with :
7473 # Bust the cache at least once a month - output format: YYYY-MM.
7574 custom-cache-suffix : $(date -u "+%Y-%m")
7675
77- # For the PHP 8/"nightly", we need to install with ignore platform reqs as we're still using PHPUnit 7.
78- - name : Install Composer dependencies - with ignore platform
79- if : ${{ startsWith( matrix.php, '8' ) }}
80- uses : " ramsey/composer-install@v2"
81- with :
82- composer-options : --ignore-platform-req=php+
83- custom-cache-suffix : $(date -u "+%Y-%m")
84-
8576 - name : " Composer: set PHPCS/PHPCSUtils version for tests (lowest)"
8677 if : ${{ matrix.phpcs_version == 'lowest' }}
8778 run : >
9283 if : matrix.phpcs_version == 'dev-master'
9384 run : composer lint
9485
95- - name : Run the unit tests - PHP 5.4 - 8.0
96- if : ${{ matrix.php < '8.1' }}
86+ - name : Run the unit tests
9787 run : composer test
9888
99- - name : Run the unit tests - PHP > 8.1
100- if : ${{ matrix.php >= '8.1' }}
101- run : composer test -- --no-configuration --bootstrap=phpunit-bootstrap.php --dont-report-useless-tests
102-
10389 # ### CODE COVERAGE STAGE ####
10490 # N.B.: Coverage is only checked on the lowest and highest stable PHP versions
10591 # and a low/high of each major for PHPCS.
@@ -114,8 +100,7 @@ jobs:
114100
115101 strategy :
116102 matrix :
117- # 7.4 should be updated to 8.2 when higher PHPUnit versions can be supported.
118- php : ['5.4', '7.4']
103+ php : ['5.4', '8.3']
119104 phpcs_version : ['lowest', 'dev-master']
120105
121106 name : " Coverage${{ matrix.phpcs_version == 'dev-master' && ' + Lint' || '' }}: PHP ${{ matrix.php }} - PHPCS ${{ matrix.phpcs_version }}"
0 commit comments