-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (45 loc) · 1.55 KB
/
ci.yaml
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
46
47
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
name: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "21"
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: unit tests
run: yarn test:unit:ci
- uses: dorny/test-reporter@v1.6.0
with:
name: unit test results
path: test-result-unit.json
reporter: mocha-json
- name: Test spec v4
run: yarn test:spec:4:ci
- name: Test spec v6
run: yarn test:spec:6:ci
- name: Test spec v7
run: yarn test:spec:7:ci
- name: Test spec 2019-09
run: yarn test:spec:2019:ci
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: spec 2019-09 test results
path: test-result-spec2019-09.json
- uses: dorny/test-reporter@v1.6.0
with:
fail-on-error: false
name: spec test results # Name of the check run which will be created
path: test-result-spec*.json # Path to test results
reporter: mocha-json # Format of test results
list-suites: "failed"