-
Notifications
You must be signed in to change notification settings - Fork 42
133 lines (127 loc) · 3.76 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: ⚙️ Unit tests
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project:
[
common,
resize-observer,
universal,
audio,
canvas,
geolocation,
intersection-observer,
midi,
mutation-observer,
payment-request,
permissions,
speech,
storage,
workers,
view-transition,
]
name: ${{ matrix.project }}
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx test ${{ matrix.project }}
- uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
path: coverage
codecov:
needs: [test]
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/common/
flags: summary,common
name: kit
- uses: codecov/[email protected]
with:
directory: ./coverage/universal/
flags: summary,universal
name: universal
- uses: codecov/[email protected]
with:
directory: ./coverage/audio/
flags: summary,audio
name: audio
- uses: codecov/[email protected]
with:
directory: ./coverage/canvas/
flags: summary,canvas
name: canvas
- uses: codecov/[email protected]
with:
directory: ./coverage/geolocation/
flags: summary,geolocation
name: geolocation
- uses: codecov/[email protected]
with:
directory: ./coverage/midi/
flags: summary,midi
name: midi
- uses: codecov/[email protected]
with:
directory: ./coverage/intersection-observer/
flags: summary,intersection-observer
name: intersection-observer
- uses: codecov/[email protected]
with:
directory: ./coverage/resize-observer/
flags: summary,resize-observer
name: resize-observer
- uses: codecov/[email protected]
with:
directory: ./coverage/mutation-observer/
flags: summary,mutation-observer
name: mutation-observer
- uses: codecov/[email protected]
with:
directory: ./coverage/payment-request/
flags: summary,payment-request
name: payment-request
- uses: codecov/[email protected]
with:
directory: ./coverage/permissions/
flags: summary,permissions
name: permissions
- uses: codecov/[email protected]
with:
directory: ./coverage/speech/
flags: summary,speech
name: speech
- uses: codecov/[email protected]
with:
directory: ./coverage/storage/
flags: summary,storage
name: storage
- uses: codecov/[email protected]
with:
directory: ./coverage/workers/
flags: summary,workers
name: workers
- uses: codecov/[email protected]
with:
directory: ./coverage/view-transition/
flags: summary,view-transition
name: view-transition
concurrency:
group: test-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true