-
Notifications
You must be signed in to change notification settings - Fork 463
105 lines (98 loc) · 2.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: ⚙️ Unit tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project:
[
addon-charts,
addon-commerce,
addon-doc,
addon-mobile,
addon-preview,
addon-table,
addon-tablebars,
cdk,
core,
demo,
kit,
]
name: ${{ matrix.project }}
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- name: Run tests for ${{ matrix.project }}
run: npx nx test ${{ matrix.project }} --skip-nx-cache
- name: Archive coverage artifacts
uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
path: coverage
codecov:
name: Collect coverage
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[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/kit/
flags: summary,kit
name: kit
- uses: codecov/[email protected]
with:
directory: ./coverage/core/
flags: summary,core
name: core
- uses: codecov/[email protected]
with:
directory: ./coverage/cdk/
flags: summary,cdk
name: cdk
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-tablebars/
flags: summary,addon-tablebars
name: addon-tablebars
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-table/
flags: summary,addon-table
name: addon-table
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-mobile/
flags: summary,addon-mobile
name: addon-mobile
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-doc/
flags: summary,addon-doc
name: addon-doc
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-commerce/
flags: summary,addon-charts
name: addon-commerce
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-charts/
flags: summary,addon-charts
name: addon-charts
concurrency:
group: test-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true