Run tests: Commit c499db9c13015823e0fbed3407e68338badbdf16 #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| run-name: 'Run tests: Commit ${{ github.sha }}' | |
| on: | |
| pull_request: | |
| types: [opened, reopened, edited] | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| linux-test-runner: | |
| name: Linux Test Runner | |
| timeout-minutes: 90 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-node@v6.3.0 | |
| with: | |
| node-version: 24.14.0 | |
| - name: Setup configs | |
| run: | | |
| cp config/common.json.example config/common.json \ | |
| && cp config/service.report.json.example config/service.report.json \ | |
| && 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 ci | |
| - name: Run tests | |
| 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 |