-
Notifications
You must be signed in to change notification settings - Fork 135
54 lines (43 loc) · 1.2 KB
/
coverage.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
46
47
48
49
50
51
52
53
54
name: Node.js CI Tests and Coverage
# Controls when the workflow will run on any branch
on:
pull_request:
# Define the jobs for this workflow
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
- name: Merge Results
run: npm run merge
if: always()
- name: Create Report
run: npm run report
if: always()
- name: Report NYC coverage
uses: sidx1024/[email protected]
if: always()
with:
coverage_file: "nyc-coverage-report/coverage-summary.json"
- name: Test Summary
uses: test-summary/action@v2
with:
paths: |
packages/fdc3-get-agent/test-results.xml
packages/fdc3-agent-proxy/test-results.xml
packages/fdc3-standard/test-results.xml
toolbox/fdc3-for-web/fdc3-web-impl/test-results.xml
show: "all"
if: always()