Skip to content

Commit f3d49ab

Browse files
authored
Merge pull request #505 from ZIMkaRU/bugfix/update-gh-actions-to-resolve-nodejs-v20-actions-are-deprecated
Update gh actions to resolve: nodejs v20 actions are deprecated
2 parents d7d4b7f + 01eb2fc commit f3d49ab

3 files changed

Lines changed: 26 additions & 36 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-22.04
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6.0.2
1919
with:
2020
submodules: recursive
21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v6.3.0
2222
with:
2323
node-version: 24.14.0
2424
- name: Setup configs
@@ -29,18 +29,14 @@ jobs:
2929
&& cp config/facs/grc.config.json.example config/facs/grc.config.json \
3030
&& cp config/facs/grc-slack.config.json.example config/facs/grc-slack.config.json
3131
- name: Install deps
32-
run: npm i
32+
run: npm ci
3333
- name: Run tests
34-
uses: nick-fields/retry@v3
35-
continue-on-error: false
36-
with:
37-
timeout_minutes: 20
38-
retry_wait_seconds: 10
39-
max_attempts: 3
40-
retry_on: any
41-
command: npm test -- --reporter=json --reporter-option output=test-report.json
42-
- uses: actions/upload-artifact@v4
34+
run: npm test -- --reporter=json --reporter-option output=test-report.json
35+
- uses: actions/upload-artifact@v7.0.0
4336
if: success() || failure()
4437
with:
4538
name: test-results
4639
path: test-report.json
40+
web-page-report:
41+
needs: linux-test-runner
42+
uses: ./.github/workflows/test-report.yml

.github/workflows/test-report.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ name: 'Test Report'
22
run-name: 'Test Report: Commit ${{ github.sha }}'
33

44
on:
5-
workflow_run:
6-
workflows: ['CI']
7-
types:
8-
- completed
5+
workflow_call
96

107
permissions:
118
contents: read
@@ -18,22 +15,18 @@ jobs:
1815
runs-on: ubuntu-22.04
1916
steps:
2017
- name: Download test results
21-
uses: actions/download-artifact@v4
18+
uses: actions/download-artifact@v8.0.0
2219
with:
23-
run-id: ${{ github.event.workflow_run.id }}
2420
github-token: ${{ secrets.GITHUB_TOKEN }}
2521
name: test-results
2622
path: test-results
27-
- uses: dorny/test-reporter@v1
23+
- uses: dorny/test-reporter@v3.0.0
2824
id: test-results
2925
with:
3026
name: Mocha Tests
3127
path: test-results/test-report.json
3228
reporter: mocha-json
29+
collapsed: never
3330
# Workaround for error 'fatal: not a git repository' caused by a call to 'git ls-files'
3431
# See: https://github.com/dorny/test-reporter/issues/169#issuecomment-1583560458
3532
max-annotations: 0
36-
- name: Test Report Summary
37-
run: |
38-
echo "### Test Report page is ready! :rocket:" >> $GITHUB_STEP_SUMMARY
39-
echo "And available at the following [Link](${{ steps.test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY

package-lock.json

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)