Skip to content

Commit

Permalink
ci: action upgrades (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil authored Jun 25, 2024
1 parent 77837d8 commit 477c858
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
steps:
# Checkout the code in the pull request
- name: 'Checkout source code'
uses: actions/checkout@v3
uses: actions/checkout@v4

# 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 @@ -46,8 +46,9 @@ jobs:

# Upload LWC 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-tests:
Expand All @@ -63,7 +64,7 @@ jobs:
# Checkout the code in the pull request
- 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 @@ -102,8 +103,9 @@ jobs:

# Upload Apex 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 @@ -15,12 +15,12 @@ jobs:
steps:
# Checkout the code in the pull request
- name: 'Checkout source code'
uses: actions/checkout@v3
uses: actions/checkout@v4

# 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 @@ -47,8 +47,9 @@ jobs:

# Upload LWC 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-tests:
Expand All @@ -63,7 +64,7 @@ jobs:
# Checkout the code in the pull request
- 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 @@ -96,8 +97,9 @@ jobs:

# Upload Apex 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

0 comments on commit 477c858

Please sign in to comment.