99 # Allow manually triggering the workflow.
1010 workflow_dispatch :
1111
12+ # Cancels all previous workflow runs for the same branch that have not yet completed.
13+ concurrency :
14+ # The concurrency group contains the workflow name and the branch name.
15+ group : ${{ github.workflow }}-${{ github.ref }}
16+ cancel-in-progress : true
17+
1218jobs :
1319 # ### TEST STAGE ####
1420 test :
@@ -23,12 +29,20 @@ jobs:
2329 # - PHP 7.3 needs PHPCS 3.3.1+ to run without errors.
2430 # - PHP 7.4 needs PHPCS 3.5.0+ to run without errors.
2531 # - PHP 8.0 needs PHPCS 3.5.7+ to run without errors.
32+ # - PHP 8.1 needs PHPCS 3.6.1+ to run without errors.
2633 php : ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2']
2734 phpcs_version : ['3.1.0', 'dev-master']
2835 experimental : [false]
2936
3037 include :
3138 # Complete the matrix, while preventing issues with PHPCS versions incompatible with certain PHP versions.
39+ - php : ' 8.1'
40+ phpcs_version : ' dev-master'
41+ experimental : false
42+ - php : ' 8.1'
43+ phpcs_version : ' 3.6.1'
44+ experimental : false
45+
3246 - php : ' 8.0'
3347 phpcs_version : ' dev-master'
3448 experimental : false
5569 phpcs_version : ' 4.0.x-dev'
5670 experimental : true
5771
58- - php : ' 8.1 ' # Nightly.
72+ - php : ' 8.2 ' # Nightly.
5973 phpcs_version : ' dev-master'
6074 experimental : true
6175
7589 if [[ "${{ matrix.phpcs_version }}" != "dev-master" && "${{ matrix.phpcs_version }}" != "4.0.x-dev" ]]; then
7690 echo '::set-output name=PHP_INI::error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On'
7791 else
78- echo '::set-output name=PHP_INI::error_reporting=E_ALL , display_errors=On'
92+ echo '::set-output name=PHP_INI::error_reporting=-1 , display_errors=On'
7993 fi
8094
8195 - name : Install PHP
@@ -96,12 +110,12 @@ jobs:
96110 # Install dependencies and handle caching in one go.
97111 # @link https://github.com/marketplace/actions/install-composer-dependencies
98112 - name : Install Composer dependencies - normal
99- if : ${{ matrix.php < 8.1 }}
113+ if : ${{ matrix.php < 8.2 }}
100114 uses : " ramsey/composer-install@v1"
101115
102116 # For PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow installation.
103117 - name : Install Composer dependencies - with ignore platform
104- if : ${{ matrix.php >= 8.1 }}
118+ if : ${{ matrix.php >= 8.2 }}
105119 uses : " ramsey/composer-install@v1"
106120 with :
107121 composer-options : --ignore-platform-reqs
0 commit comments