Skip to content

Commit 76b2aa7

Browse files
authored
Merge pull request #677 from PHPCSStandards/feature/ghactions-tweak-quicktest-windows
GH Actions: fiddle the PHP versions and line endings for Windows builds
2 parents 0194e46 + 512647f commit 76b2aa7

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/quicktest.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,25 @@ jobs:
2828
strategy:
2929
matrix:
3030
os: ['ubuntu-latest', 'windows-latest']
31-
php: ['5.4', '7.2', 'latest']
31+
php: ['7.2', 'latest']
32+
33+
include:
34+
- php: '5.4'
35+
os: 'ubuntu-latest'
36+
custom_ini: false
37+
# Installing on Windows with PHP 5.4 runs into all sorts of problems with Composer.
38+
# See this issue for more context (yes, I've seen this problem before):
39+
# @link https://github.com/PHPCSStandards/composer-installer/pull/213
40+
- php: '5.5'
41+
os: 'windows-latest'
42+
custom_ini: false
3243

3344
name: "QuickTest: PHP ${{ matrix.php }} (${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Win' }})"
3445

3546
steps:
47+
- name: Prepare git to leave line endings alone
48+
run: git config --global core.autocrlf input
49+
3650
- name: Checkout code
3751
uses: actions/checkout@v4
3852

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ jobs:
118118
continue-on-error: ${{ matrix.php == '8.5' }}
119119

120120
steps:
121+
- name: Prepare git to leave line endings alone
122+
run: git config --global core.autocrlf input
123+
121124
- name: Checkout code
122125
uses: actions/checkout@v4
123126

@@ -229,6 +232,9 @@ jobs:
229232
name: "Coverage: ${{ matrix.php }} ${{ matrix.custom_ini && ' with custom ini settings' || '' }} (${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Win' }})"
230233

231234
steps:
235+
- name: Prepare git to leave line endings alone
236+
run: git config --global core.autocrlf input
237+
232238
- name: Checkout code
233239
uses: actions/checkout@v4
234240

0 commit comments

Comments
 (0)