generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 35
73 lines (65 loc) · 1.89 KB
/
test.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- name: Run tests
run: npx nx run-many --target test --all --coverage
- name: Archive coverage artifacts
uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
path: coverage
codecov:
name: Collect coverage
needs: [tests]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
path: coverage
- name: Display structure of coverage files
run: tree -L 2 ./coverage -P 'lcov.info'
- uses: codecov/[email protected]
with:
directory: ./coverage/core/
flags: summary,core
name: core
- uses: codecov/[email protected]
with:
directory: ./coverage/kit/
flags: summary,kit
name: kit
- uses: codecov/[email protected]
with:
directory: ./coverage/phone/
flags: summary,phone
name: phone
- uses: codecov/[email protected]
with:
directory: ./coverage/angular/
flags: summary,angular
name: angular
- uses: codecov/[email protected]
with:
directory: ./coverage/react/
flags: summary,react
name: react
- uses: codecov/[email protected]
with:
directory: ./coverage/vue/
flags: summary,vue
name: vue
concurrency:
group: test-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true