Skip to content

Commit ef8a70b

Browse files
authored
Merge pull request #238 from PHPCSStandards/feature/ghactions-test-tweaks
GH Actions: run tests against lowest supported PHPCSUtils
2 parents 0e6d22a + 02cfb7d commit ef8a70b

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/quicktest.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ jobs:
7676
composer-options: --ignore-platform-req=php+
7777
custom-cache-suffix: $(date -u "+%Y-%m")
7878

79-
- name: "Composer: set PHPCS version for tests (lowest)"
79+
- name: "Composer: set PHPCS/PHPCSUtils version for tests (lowest)"
8080
if: ${{ matrix.phpcs_version == 'lowest' }}
81-
run: composer update squizlabs/php_codesniffer --prefer-lowest --ignore-platform-req=php+ --no-scripts --no-interaction
81+
run: >
82+
composer update squizlabs/php_codesniffer phpcsstandards/phpcsutils
83+
--prefer-lowest --ignore-platform-req=php+ --no-scripts --no-interaction
8284
8385
- name: Lint against parse errors
8486
if: matrix.phpcs_version == 'dev-master'

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ jobs:
8282
composer-options: --ignore-platform-req=php+
8383
custom-cache-suffix: $(date -u "+%Y-%m")
8484

85-
- name: "Composer: set PHPCS version for tests (lowest)"
85+
- name: "Composer: set PHPCS/PHPCSUtils version for tests (lowest)"
8686
if: ${{ matrix.phpcs_version == 'lowest' }}
87-
run: composer update squizlabs/php_codesniffer --prefer-lowest --ignore-platform-req=php+ --no-scripts --no-interaction
87+
run: >
88+
composer update squizlabs/php_codesniffer phpcsstandards/phpcsutils
89+
--prefer-lowest --ignore-platform-req=php+ --no-scripts --no-interaction
8890
8991
- name: Lint against parse errors
9092
if: matrix.phpcs_version == 'dev-master'
@@ -153,9 +155,11 @@ jobs:
153155
# Bust the cache at least once a month - output format: YYYY-MM.
154156
custom-cache-suffix: $(date -u "+%Y-%m")
155157

156-
- name: "Composer: set PHPCS version for tests (lowest)"
158+
- name: "Composer: set PHPCS/PHPCSUtils version for tests (lowest)"
157159
if: ${{ matrix.phpcs_version == 'lowest' }}
158-
run: composer update squizlabs/php_codesniffer --prefer-lowest --ignore-platform-req=php+ --no-scripts --no-interaction
160+
run: >
161+
composer update squizlabs/php_codesniffer phpcsstandards/phpcsutils
162+
--prefer-lowest --ignore-platform-req=php+ --no-scripts --no-interaction
159163
160164
- name: Lint against parse errors
161165
if: matrix.phpcs_version == 'dev-master'

0 commit comments

Comments
 (0)