From a1fc23989b2ff70190a7afd2c9b754ca1cb6d41d Mon Sep 17 00:00:00 2001 From: Philippe Ozil Date: Tue, 14 May 2024 18:04:55 +0200 Subject: [PATCH] ci: upgrade to node@20 (#687) --- .github/workflows/auto-assign.yml | 2 +- .github/workflows/ci-pr.yml | 14 ++++++++------ .github/workflows/ci.yml | 12 +++++++----- .github/workflows/codetour-watch.yml | 4 ++-- 4 files changed, 18 insertions(+), 14 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 4252aaa2..2d128039 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -25,7 +25,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' @@ -34,7 +34,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') }} @@ -61,8 +61,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: @@ -79,7 +80,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 @@ -117,7 +118,7 @@ jobs: # Checkout the source code - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Store secret for dev hub - name: 'Populate auth file with DEVHUB_SFDX_URL secret' @@ -174,8 +175,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 e5cb1612..5e0d6cea 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') }} @@ -54,8 +54,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: @@ -73,7 +74,7 @@ jobs: # Checkout the source code - name: 'Checkout source code' - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Store secret for dev hub - name: 'Populate auth file with DEVHUB_SFDX_URL secret' @@ -124,8 +125,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/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]'