From 07f025965b1a00b73fe10fb2567710ed408ef3b5 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 8 Nov 2023 14:06:29 +0100 Subject: [PATCH] Use dynamic PHP setup action version for test runners --- .github/workflows/continuous-integration.yml | 18 +++++++++--------- .../workflows/deploy-documentation-preview.yml | 2 +- .github/workflows/smoke-tests.yml | 2 +- .github/workflows/test-pull-requests.yml | 4 ++-- .../framework/.github/workflows/run-tests.yml | 2 +- .../testing/stubs/hyde-testing-workflow.stub | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 6b397cc4f81..7158257e3b2 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" extensions: fileinfo @@ -54,7 +54,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: ${{ matrix.php }} extensions: fileinfo, zip @@ -169,7 +169,7 @@ jobs: needs: run-smoke-tests steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" coverage: xdebug @@ -263,7 +263,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" @@ -311,7 +311,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" @@ -362,7 +362,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" @@ -468,7 +468,7 @@ jobs: check-coding-standards: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" - uses: actions/checkout@v3 @@ -486,7 +486,7 @@ jobs: run-static-analysis-psalm: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" - uses: actions/checkout@v3 @@ -504,7 +504,7 @@ jobs: run-static-analysis-phpstan: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" - uses: actions/checkout@v3 diff --git a/.github/workflows/deploy-documentation-preview.yml b/.github/workflows/deploy-documentation-preview.yml index d5ba43e2e80..4dc301fc646 100644 --- a/.github/workflows/deploy-documentation-preview.yml +++ b/.github/workflows/deploy-documentation-preview.yml @@ -21,7 +21,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 61968b1b89d..153b2d4dc92 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -36,7 +36,7 @@ jobs: test-coverage: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" coverage: xdebug diff --git a/.github/workflows/test-pull-requests.yml b/.github/workflows/test-pull-requests.yml index 1c62f1b5ffe..d5b1be04c85 100644 --- a/.github/workflows/test-pull-requests.yml +++ b/.github/workflows/test-pull-requests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: "8.1" coverage: xdebug @@ -63,7 +63,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: ${{ matrix.php }} extensions: fileinfo, zip diff --git a/packages/framework/.github/workflows/run-tests.yml b/packages/framework/.github/workflows/run-tests.yml index db63d3508e9..6c4ab91a208 100644 --- a/packages/framework/.github/workflows/run-tests.yml +++ b/packages/framework/.github/workflows/run-tests.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: ${{ matrix.php }} extensions: fileinfo, zip diff --git a/packages/testing/stubs/hyde-testing-workflow.stub b/packages/testing/stubs/hyde-testing-workflow.stub index 8092092378f..d276395c237 100644 --- a/packages/testing/stubs/hyde-testing-workflow.stub +++ b/packages/testing/stubs/hyde-testing-workflow.stub @@ -17,7 +17,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 + - uses: shivammathur/setup-php@v2.27 with: php-version: '8.0' extensions: fileinfo