From 97e0de0ce8c4301c86cd3e7efc1481664f4926ae Mon Sep 17 00:00:00 2001 From: Renato Alves <19148962+renatonascalves@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:52:34 -0300 Subject: [PATCH] Update actions with support to Node 20 --- .github/workflows/coding-standards.yml | 8 ++++---- .github/workflows/unit-tests.yml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 0ecddb7c..8a4e1730 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -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 @@ -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 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 08fe5dc1..1d4f6f37 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -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 @@ -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: