Skip to content

Commit 94df3d6

Browse files
authored
[11.x] Run Workflows on Windows 2022 and with bash instead of powershell (#51958)
* Run Workflows on Windows 2022 * Require dependencies using caret * Use Powershell * Use bash
1 parent 032f378 commit 94df3d6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
!vendor/**/.gitignore
105105
106106
windows_tests:
107-
runs-on: windows-2019
107+
runs-on: windows-2022
108108

109109
strategy:
110110
fail-fast: true
@@ -140,14 +140,16 @@ jobs:
140140
with:
141141
timeout_minutes: 5
142142
max_attempts: 5
143-
command: composer require guzzlehttp/psr7:~2.4 --no-interaction --no-update
143+
command: composer require guzzlehttp/psr7:^2.4 --no-interaction --no-update
144+
shell: bash
144145

145146
- name: Set PHPUnit
146147
uses: nick-fields/retry@v3
147148
with:
148149
timeout_minutes: 5
149150
max_attempts: 5
150-
command: composer require phpunit/phpunit:~${{ matrix.phpunit }} --dev --no-interaction --no-update
151+
command: composer require phpunit/phpunit:^${{ matrix.phpunit }} --dev --no-interaction --no-update
152+
shell: bash
151153

152154
- name: Install dependencies
153155
uses: nick-fields/retry@v3

0 commit comments

Comments
 (0)