-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (43 loc) · 1.25 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 18.17.1
- 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 i
- 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
if: success() || failure()
with:
name: test-results
path: test-report.json