44 pull_request :
55 push :
66 branches :
7+ - main
78 - master
89
910# Cancels all previous workflow runs for the same branch that have not yet completed.
1920 strategy :
2021 fail-fast : false
2122 matrix :
22- php : ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
23+ php : ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
2324 runs-on : ubuntu-20.04
2425
2526 steps :
@@ -39,12 +40,14 @@ jobs:
3940 php-version : ' ${{ matrix.php }}'
4041 coverage : none
4142 tools : composer,cs2pr
43+ env :
44+ COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4245
4346 - name : Install Composer dependencies & cache dependencies
4447 if : steps.check_files.outputs.files_exists == 'true'
45- uses : " ramsey/composer-install@v1 "
48+ uses : " ramsey/composer-install@v2 "
4649 env :
47- COMPOSER_ROOT_VERSION : ' dev-master '
50+ COMPOSER_ROOT_VERSION : dev-${{ github.event.repository.default_branch }}
4851
4952 - name : Setup problem matcher to provide annotations for PHPUnit
5053 if : steps.check_files.outputs.files_exists == 'true'
5962 strategy :
6063 fail-fast : false
6164 matrix :
62- php : ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
65+ php : ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
6366 wp : ['latest']
6467 mysql : ['8.0']
6568 include :
8487 - php : ' 8.0'
8588 wp : ' trunk'
8689 mysql : ' 5.6'
90+ - php : ' 8.1'
91+ wp : ' trunk'
92+ mysql : ' 8.0'
8793 - php : ' 5.6'
8894 wp : ' 3.7'
8995 mysql : ' 5.6'
@@ -120,6 +126,8 @@ jobs:
120126 extensions : gd, imagick, mysql, zip
121127 coverage : none
122128 tools : composer
129+ env :
130+ COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123131
124132 - name : Change ImageMagick policy to allow pdf->png conversion.
125133 if : steps.check_files.outputs.files_exists == 'true'
@@ -128,9 +136,9 @@ jobs:
128136
129137 - name : Install Composer dependencies & cache dependencies
130138 if : steps.check_files.outputs.files_exists == 'true'
131- uses : " ramsey/composer-install@v1 "
139+ uses : " ramsey/composer-install@v2 "
132140 env :
133- COMPOSER_ROOT_VERSION : ' dev-master '
141+ COMPOSER_ROOT_VERSION : dev-${{ github.event.repository.default_branch }}
134142
135143 - name : Start MySQL server
136144 if : steps.check_files.outputs.files_exists == 'true'
0 commit comments