Skip to content

Commit 6a8dc55

Browse files
committed
Try this
1 parent f4c8136 commit 6a8dc55

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/quicktest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ jobs:
9999

100100
include:
101101
- php: '7.2'
102-
phpcs_version: '4.0.0'
102+
phpcs_version: '4.x-dev'
103103
- php: 'latest'
104-
phpcs_version: 'dev-4.x'
104+
phpcs_version: '4.x-dev'
105105

106106
name: "QTest: PHP ${{ matrix.php }} - PHPCS ${{ matrix.phpcs_version }}"
107107

@@ -114,7 +114,7 @@ jobs:
114114
- name: Setup ini config
115115
id: set_ini
116116
run: |
117-
if [ "${{ startsWith( matrix.phpcs_version, 'dev-' ) }}" == "true" ]; then
117+
if [ "${{ startsWith( matrix.phpcs_version, 'dev-' ) || endsWith( matrix.phpcs_version, '-dev' ) }}" == "true" ]; then
118118
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On' >> "$GITHUB_OUTPUT"
119119
else
120120
echo 'PHP_INI=error_reporting=-1, display_errors=On' >> "$GITHUB_OUTPUT"

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
#
114114
# Additionally, PHPCS 4.x has a minimum version requirement of PHP 7.2.
115115
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
116-
phpcs_version: ['dev-master', '4.0.0', 'dev-4.x']
116+
phpcs_version: ['dev-master', '4.0.0', '4.x-dev']
117117

118118
include:
119119
# Complete the matrix, while preventing issues with PHPCS versions incompatible with certain PHP versions.
@@ -172,7 +172,7 @@ jobs:
172172
run: |
173173
# On stable PHPCS versions, allow for PHP deprecation notices.
174174
# Unit tests don't need to fail on those for stable releases where those issues won't get fixed anymore.
175-
if [ "${{ startsWith( matrix.phpcs_version, 'dev-' ) }}" == "true" ]; then
175+
if [ "${{ startsWith( matrix.phpcs_version, 'dev-' ) || endsWith( matrix.phpcs_version, '-dev' ) }}" == "true" ]; then
176176
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On' >> "$GITHUB_OUTPUT"
177177
else
178178
echo 'PHP_INI=error_reporting=-1, display_errors=On' >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)