Skip to content

Commit 9f12ca3

Browse files
committed
Update GH actions to latest versions. Fix bug in codecov to ensure it retries on error.
1 parent 99228d9 commit 9f12ca3

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343
steps:
4444
# https://github.com/actions/checkout
4545
- name: Checkout codebase
46-
uses: actions/checkout@v3
46+
uses: actions/checkout@v4
4747

4848
# https://github.com/actions/setup-node
4949
- name: Install Node.js ${{ matrix.node-version }}
50-
uses: actions/setup-node@v3
50+
uses: actions/setup-node@v4
5151
with:
5252
node-version: ${{ matrix.node-version }}
5353

@@ -118,7 +118,7 @@ jobs:
118118
# https://github.com/cypress-io/github-action
119119
# (NOTE: to run these e2e tests locally, just use 'ng e2e')
120120
- name: Run e2e tests (integration tests)
121-
uses: cypress-io/github-action@v5
121+
uses: cypress-io/github-action@v6
122122
with:
123123
# Run tests in Chrome, headless mode (default)
124124
browser: chrome
@@ -191,7 +191,7 @@ jobs:
191191
runs-on: ubuntu-latest
192192
steps:
193193
- name: Checkout
194-
uses: actions/checkout@v3
194+
uses: actions/checkout@v4
195195

196196
# Download artifacts from previous 'tests' job
197197
- name: Download coverage artifacts
@@ -203,10 +203,14 @@ jobs:
203203
# Retry action: https://github.com/marketplace/actions/retry-action
204204
# Codecov action: https://github.com/codecov/codecov-action
205205
- name: Upload coverage to Codecov.io
206-
uses: Wandalen/wretry.action@v1.0.36
206+
uses: Wandalen/wretry.action@v1.3.0
207207
with:
208208
action: codecov/codecov-action@v3
209-
# Try upload 5 times max
209+
# Ensure codecov-action throws an error when it fails to upload
210+
# This allows us to auto-restart the action if an error is thrown
211+
with: |
212+
fail_ci_if_error: true
213+
# Try re-running action 5 times max
210214
attempt_limit: 5
211215
# Run again in 30 seconds
212216
attempt_delay: 30000

.github/workflows/codescan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
steps:
3636
# https://github.com/actions/checkout
3737
- name: Checkout repository
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
# Initializes the CodeQL tools for scanning.
4141
# https://github.com/github/codeql-action

.github/workflows/port_merged_pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
if: github.event.pull_request.merged
2424
steps:
2525
# Checkout code
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
# Port PR to other branch (ONLY if labeled with "port to")
2828
# See https://github.com/korthout/backport-action
2929
- name: Create backport pull requests
30-
uses: korthout/backport-action@v1
30+
uses: korthout/backport-action@v2
3131
with:
3232
# Trigger based on a "port to [branch]" label on PR
3333
# (This label must specify the branch name to port to)

.github/workflows/pull_request_opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
# Assign the PR to whomever created it. This is useful for visualizing assignments on project boards
2222
# See https://github.com/toshimaru/auto-author-assign
2323
- name: Assign PR to creator
24-
uses: toshimaru/auto-author-assign@v1.6.2
24+
uses: toshimaru/auto-author-assign@v2.0.1

0 commit comments

Comments
 (0)