Skip to content

Commit

Permalink
ci: upgrade to node@20 (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil authored May 14, 2024
1 parent 51f6083 commit 8e2d0b3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 21 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 }}
16 changes: 9 additions & 7 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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') }}
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
18 changes: 10 additions & 8 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 Down Expand Up @@ -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:
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand Down Expand Up @@ -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 }}
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
2 changes: 1 addition & 1 deletion .github/workflows/manual-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}'
Expand Down

0 comments on commit 8e2d0b3

Please sign in to comment.