Skip to content

Commit

Permalink
Update actions with support to Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonascalves committed Mar 19, 2024
1 parent fa2baed commit 97e0de0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.12.0
uses: styfle/cancel-workflow-action
with:
access_token: ${{ github.token }}

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -35,9 +35,9 @@ jobs:
run: composer validate --strict

- name: Install dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
composer-options: "--ignore-platform-reqs"
composer-options: "--ignore-platform-reqs --optimize-autoloader"

- name: Run PHPCS
run: composer phpcs
10 changes: 5 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.12.0
uses: styfle/cancel-workflow-action
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check Gitignored files
run: if [[ ! -z $(git ls-files -i --exclude-standard) ]]; then exit 1; fi
Expand All @@ -51,12 +51,12 @@ jobs:
node-version: '>=20.10.0'

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
composer-options: "--ignore-platform-reqs"
composer-options: "--ignore-platform-reqs --optimize-autoloader"

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down

0 comments on commit 97e0de0

Please sign in to comment.