Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade the phpcs-diff action to use Node.js v20 #116

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/github-actions/actions/phpcs-diff/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ 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:

```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
```
6 changes: 4 additions & 2 deletions packages/github-actions/actions/phpcs-diff/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ 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
# 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 }}

Expand Down