Skip to content

Commit

Permalink
ci: upgrade to node@20 (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil authored May 14, 2024
1 parent 129e0c2 commit a1fc239
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
14 changes: 8 additions & 6 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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') }}
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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') }}
Expand All @@ -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:
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codetour-watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand Down

0 comments on commit a1fc239

Please sign in to comment.