From 3e595635b7b6d360b6b3f24f846b33a9db561472 Mon Sep 17 00:00:00 2001 From: Eason Su Date: Wed, 24 Apr 2024 14:18:10 +0800 Subject: [PATCH 1/3] Upgrade the `phpcs-diff` action in the `github-actions` package to use Node.js v20. --- packages/github-actions/actions/phpcs-diff/README.md | 4 ++-- packages/github-actions/actions/phpcs-diff/action.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/github-actions/actions/phpcs-diff/README.md b/packages/github-actions/actions/phpcs-diff/README.md index b585f334..c8a3b62a 100644 --- a/packages/github-actions/actions/phpcs-diff/README.md +++ b/packages/github-actions/actions/phpcs-diff/README.md @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Run PHPCS to changed lines of code - uses: woocommerce/grow/phpcs-diff@actions-v1 + uses: woocommerce/grow/phpcs-diff@actions-v2 ``` #### Specify the PHP version: @@ -41,7 +41,7 @@ jobs: ```yaml steps: - name: Run PHPCS to changed lines of code - uses: woocommerce/grow/phpcs-diff@actions-v1 + uses: woocommerce/grow/phpcs-diff@actions-v2 with: php-version: 8.1 ``` diff --git a/packages/github-actions/actions/phpcs-diff/action.yml b/packages/github-actions/actions/phpcs-diff/action.yml index 550a6cd5..900fc6a7 100644 --- a/packages/github-actions/actions/phpcs-diff/action.yml +++ b/packages/github-actions/actions/phpcs-diff/action.yml @@ -11,12 +11,12 @@ runs: using: composite steps: # Checkout repository. - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 2 # Set up PHP. - - uses: woocommerce/grow/prepare-php@actions-v1 + - uses: woocommerce/grow/prepare-php@actions-v2 with: php-version: ${{ inputs.php-version }} From 3bba1ed4aade5406450b8ce11f397fd1348d127f Mon Sep 17 00:00:00 2001 From: Eason Su Date: Wed, 24 Apr 2024 15:31:37 +0800 Subject: [PATCH 2/3] Temporarily using test build of `prepare-php`. --- packages/github-actions/actions/phpcs-diff/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/github-actions/actions/phpcs-diff/action.yml b/packages/github-actions/actions/phpcs-diff/action.yml index 900fc6a7..343c75b8 100644 --- a/packages/github-actions/actions/phpcs-diff/action.yml +++ b/packages/github-actions/actions/phpcs-diff/action.yml @@ -16,7 +16,9 @@ runs: fetch-depth: 2 # Set up PHP. - - uses: woocommerce/grow/prepare-php@actions-v2 + # - uses: woocommerce/grow/prepare-php@actions-v2 + # Temporarily using test build + - uses: woocommerce/grow/prepare-php@update/108-nodejs-v20-github-actions-external-only-test-build with: php-version: ${{ inputs.php-version }} From 9b49e0497362ae094232c67e0d0e38c35650e161 Mon Sep 17 00:00:00 2001 From: Eason Su Date: Wed, 24 Apr 2024 19:50:41 +0800 Subject: [PATCH 3/3] Revert "Temporarily using test build of `prepare-php`." This reverts commit 3bba1ed4aade5406450b8ce11f397fd1348d127f. --- packages/github-actions/actions/phpcs-diff/action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/github-actions/actions/phpcs-diff/action.yml b/packages/github-actions/actions/phpcs-diff/action.yml index 343c75b8..900fc6a7 100644 --- a/packages/github-actions/actions/phpcs-diff/action.yml +++ b/packages/github-actions/actions/phpcs-diff/action.yml @@ -16,9 +16,7 @@ runs: fetch-depth: 2 # Set up PHP. - # - uses: woocommerce/grow/prepare-php@actions-v2 - # Temporarily using test build - - uses: woocommerce/grow/prepare-php@update/108-nodejs-v20-github-actions-external-only-test-build + - uses: woocommerce/grow/prepare-php@actions-v2 with: php-version: ${{ inputs.php-version }}