File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ name: 'Test Report'
22run-name : ' Test Report: Commit ${{ github.sha }}'
33
44on :
5- workflow_run :
6- workflows : ['CI']
7- types :
8- - completed
5+ workflow_call
96
107permissions :
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
You can’t perform that action at this time.
0 commit comments