Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6.0.2
with:
submodules: recursive
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6.3.0
with:
node-version: 24.14.0
- name: Setup configs
Expand All @@ -29,18 +29,14 @@ jobs:
&& cp config/facs/grc.config.json.example config/facs/grc.config.json \
&& cp config/facs/grc-slack.config.json.example config/facs/grc-slack.config.json
- name: Install deps
run: npm i
run: npm ci
- name: Run tests
uses: nick-fields/retry@v3
continue-on-error: false
with:
timeout_minutes: 20
retry_wait_seconds: 10
max_attempts: 3
retry_on: any
command: npm test -- --reporter=json --reporter-option output=test-report.json
- uses: actions/upload-artifact@v4
run: npm test -- --reporter=json --reporter-option output=test-report.json
- uses: actions/upload-artifact@v7.0.0
if: success() || failure()
with:
name: test-results
path: test-report.json
web-page-report:
needs: linux-test-runner
uses: ./.github/workflows/test-report.yml
15 changes: 4 additions & 11 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ name: 'Test Report'
run-name: 'Test Report: Commit ${{ github.sha }}'

on:
workflow_run:
workflows: ['CI']
types:
- completed
workflow_call

permissions:
contents: read
Expand All @@ -18,22 +15,18 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Download test results
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8.0.0
with:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: test-results
path: test-results
- uses: dorny/test-reporter@v1
- uses: dorny/test-reporter@v3.0.0
id: test-results
with:
name: Mocha Tests
path: test-results/test-report.json
reporter: mocha-json
collapsed: never
# Workaround for error 'fatal: not a git repository' caused by a call to 'git ls-files'
# See: https://github.com/dorny/test-reporter/issues/169#issuecomment-1583560458
max-annotations: 0
- name: Test Report Summary
run: |
echo "### Test Report page is ready! :rocket:" >> $GITHUB_STEP_SUMMARY
echo "And available at the following [Link](${{ steps.test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY
27 changes: 14 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.