-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.17 KB
/
coverage.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
48
49
50
51
52
name: Coverage
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
unit_tests:
uses: ./.github/workflows/unit_tests.yaml
end_to_end_tests:
uses: ./.github/workflows/end_to_end_tests.yaml
coverage:
name: Compute coverage
runs-on: ubuntu-22.04
needs: [unit_tests, end_to_end_tests]
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: '20'
cache: npm
- name: Install nyc
run: npm install -g nyc
- name: Create coverage-all folder
run: mkdir coverage-all
- name: Download unit coverage
uses: actions/download-artifact@v3
with:
name: unit-coverage
path: coverage-all
- name: Download playwright coverage
uses: actions/download-artifact@v3
with:
name: playwright-coverage
path: coverage-all
- name: Code coverage report
uses: tj-actions/[email protected]
with:
coverage-command: "nyc report --temp-dir ./coverage-all --reporter=text --exclude-after-remap false"