Skip to content

Commit 7856698

Browse files
authored
Merge pull request #196 from PHPCSStandards/feature/upstream-branch-rename
GH Actions: update for final PHPCS 4.0.0 release and main branch rename
2 parents a6c8e1c + 66e05f7 commit 7856698

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.github/workflows/cs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ jobs:
3939
run: |
4040
# The sniff stage doesn't run the unit tests, so no need for PHPUnit.
4141
composer remove --no-update --dev phpunit/phpunit --no-scripts --no-interaction
42-
# Using PHPCS `master` as an early detection system for bugs upstream.
43-
composer require --no-update squizlabs/php_codesniffer:"dev-master" --no-interaction
42+
# Using PHPCS `3.x` as an early detection system for bugs upstream.
43+
# This should be changed to 4.x, but we'll need to wait for PHPCSDevCS to be compatible with 4.x.
44+
composer require --no-update squizlabs/php_codesniffer:"3.x-dev" --no-interaction
4445
4546
# Install dependencies and handle caching in one go.
4647
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer

.github/workflows/quicktest.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
strategy:
9696
matrix:
9797
php: ['5.4', 'latest']
98-
phpcs_version: ['3.1.0', 'dev-master']
98+
phpcs_version: ['3.1.0', '3.x-dev']
9999

100100
exclude:
101101
# PHP 3.1.0 is incompatible with PHP >= 8.0.
@@ -107,8 +107,12 @@ jobs:
107107
- php: 'latest'
108108
phpcs_version: '3.8.0'
109109

110+
- php: '7.2'
111+
phpcs_version: '4.0.0'
110112
- php: '7.2'
111113
phpcs_version: '4.x-dev'
114+
- php: 'latest'
115+
phpcs_version: '4.0.0'
112116
- php: 'latest'
113117
phpcs_version: '4.x-dev'
114118

.github/workflows/test.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,27 @@ jobs:
113113
#
114114
# Additionally, PHPCS 4.x has a minimum version requirement of PHP 7.2.
115115
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
116-
phpcs_version: ['dev-master', '4.x-dev']
116+
phpcs_version: ['3.x-dev', '4.0.0', '4.x-dev']
117117

118118
exclude:
119+
- php: '5.4'
120+
phpcs_version: '4.0.0'
119121
- php: '5.4'
120122
phpcs_version: '4.x-dev'
123+
- php: '5.5'
124+
phpcs_version: '4.0.0'
121125
- php: '5.5'
122126
phpcs_version: '4.x-dev'
127+
- php: '5.6'
128+
phpcs_version: '4.0.0'
123129
- php: '5.6'
124130
phpcs_version: '4.x-dev'
131+
- php: '7.0'
132+
phpcs_version: '4.0.0'
125133
- php: '7.0'
126134
phpcs_version: '4.x-dev'
135+
- php: '7.1'
136+
phpcs_version: '4.0.0'
127137
- php: '7.1'
128138
phpcs_version: '4.x-dev'
129139

0 commit comments

Comments
 (0)