From 94df3d60c9a6c2e6fdb47202d979fc92d339a5f8 Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Sat, 29 Jun 2024 15:49:26 +0200 Subject: [PATCH] [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 --- .github/workflows/tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5e59abe0517d..b3624859ce0c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -104,7 +104,7 @@ jobs: !vendor/**/.gitignore windows_tests: - runs-on: windows-2019 + runs-on: windows-2022 strategy: fail-fast: true @@ -140,14 +140,16 @@ jobs: with: timeout_minutes: 5 max_attempts: 5 - command: composer require guzzlehttp/psr7:~2.4 --no-interaction --no-update + command: composer require guzzlehttp/psr7:^2.4 --no-interaction --no-update + shell: bash - name: Set PHPUnit uses: nick-fields/retry@v3 with: timeout_minutes: 5 max_attempts: 5 - command: composer require phpunit/phpunit:~${{ matrix.phpunit }} --dev --no-interaction --no-update + command: composer require phpunit/phpunit:^${{ matrix.phpunit }} --dev --no-interaction --no-update + shell: bash - name: Install dependencies uses: nick-fields/retry@v3