From 8e2d0b38f74bb5c073d69b4f556ff7f3d8be95ee Mon Sep 17 00:00:00 2001 From: Philippe Ozil Date: Tue, 14 May 2024 18:00:15 +0200 Subject: [PATCH] ci: upgrade to node@20 (#394) --- .github/workflows/auto-assign.yml | 2 +- .github/workflows/ci-pr.yml | 16 +++++++++------- .github/workflows/ci.yml | 18 ++++++++++-------- .github/workflows/codetour-watch.yml | 4 ++-- .github/workflows/manual-packaging.yml | 2 +- .github/workflows/packaging.yml | 4 ++-- 6 files changed, 25 insertions(+), 21 deletions(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 35fff44c..7dbaf7c0 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -9,7 +9,7 @@ jobs: runs-on: trailheadapps-Ubuntu steps: - name: 'Auto-assign issue' - uses: pozil/auto-assign-issue@v1 + uses: pozil/auto-assign-issue@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} assignees: ${{ vars.DEFAULT_ISSUE_ASSIGNEE }} diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 9df1b63d..4f888120 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -37,7 +37,7 @@ jobs: steps: # Checkout the source code - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Install Volta to enforce proper node and package manager versions - name: 'Install Volta' @@ -46,7 +46,7 @@ jobs: # Cache node_modules to speed up the process - name: 'Restore node_modules cache' id: cache-npm - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules key: npm-${{ hashFiles('**/package-lock.json') }} @@ -75,8 +75,9 @@ jobs: # Upload code coverage data - name: 'Upload code coverage for LWC to Codecov.io' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} flags: LWC # Auto merge Dependabot PRs for: @@ -93,7 +94,7 @@ jobs: steps: - name: 'Fetch Dependabot metadata' id: dependabot - uses: dependabot/fetch-metadata@v1 + uses: dependabot/fetch-metadata@v2 - name: 'Check auto merge conditions' id: auto-merge @@ -123,11 +124,11 @@ jobs: steps: # Checkout the source code - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Run PMD scan - name: 'Run PMD scan' - uses: pmd/pmd-github-action@v1.4.0 + uses: pmd/pmd-github-action@v2.0.0 id: pmd with: version: '6.55.0' @@ -191,8 +192,9 @@ jobs: # Upload code coverage data - name: 'Upload code coverage for Apex to Codecov.io' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} flags: Apex # Housekeeping diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64066402..479f2b93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: steps: # Checkout the source code - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Install Volta to enforce proper node and package manager versions - name: 'Install Volta' @@ -27,7 +27,7 @@ jobs: # Cache node_modules to speed up the process - name: 'Restore node_modules cache' id: cache-npm - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules key: npm-${{ hashFiles('**/package-lock.json') }} @@ -56,8 +56,9 @@ jobs: # Upload code coverage data - name: 'Upload code coverage for LWC to Codecov.io' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} flags: LWC scratch-org-test: @@ -67,11 +68,11 @@ jobs: steps: # Checkout the source code - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Run PMD scan - name: 'Run PMD scan' - uses: pmd/pmd-github-action@v1.4.0 + uses: pmd/pmd-github-action@v2.0.0 id: pmd with: version: '6.55.0' @@ -129,8 +130,9 @@ jobs: # Upload code coverage data - name: 'Upload code coverage for Apex to Codecov.io' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} flags: Apex # Housekeeping @@ -144,7 +146,7 @@ jobs: steps: # Checkout the source code with history - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Check for package changes using git diff - name: 'Check for package changes' @@ -205,7 +207,7 @@ jobs: # Trigger packaging workflow if needed - name: 'Trigger packaging workflow if needed' - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 if: steps.checkForChanges.outputs.changes != '[]' with: token: ${{ secrets.REPO_ACCESS_TOKEN }} diff --git a/.github/workflows/codetour-watch.yml b/.github/workflows/codetour-watch.yml index bab2c1a5..84addf18 100644 --- a/.github/workflows/codetour-watch.yml +++ b/.github/workflows/codetour-watch.yml @@ -10,10 +10,10 @@ jobs: if: github.actor != 'trailheadapps-bot' && github.actor != 'dependabot[bot]' steps: - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: 'Watch CodeTour changes' - uses: pozil/codetour-watch@v2.0.0 + uses: pozil/codetour-watch@v3.0.0 skip-codetour-watch: if: github.actor == 'trailheadapps-bot' || github.actor == 'dependabot[bot]' diff --git a/.github/workflows/manual-packaging.yml b/.github/workflows/manual-packaging.yml index 66aeebf1..47868b5c 100644 --- a/.github/workflows/manual-packaging.yml +++ b/.github/workflows/manual-packaging.yml @@ -17,7 +17,7 @@ jobs: steps: # Trigger packaging workflow - name: 'Trigger packaging workflow' - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.REPO_ACCESS_TOKEN }} event-type: start-packaging diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 26ed7be6..750c1d04 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -25,7 +25,7 @@ jobs: # Checkout the source code - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.client_payload.ref }} @@ -112,7 +112,7 @@ jobs: # Create PR for new package version - name: 'Create PR for new package version' id: create-pr - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v6 with: title: 'Package: ${{ matrix.package }} - New version: ${{ steps.createPackageVersion.outputs.packageVersionId }}' body: 'Released new package version ${{ steps.createPackageVersion.outputs.packageVersionId }} for package ${{ matrix.package }}'