-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (61 loc) · 1.71 KB
/
ci: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
name: ci:test
on:
push:
branches:
- main
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Continuous integration
strategy:
fail-fast: false
matrix:
test-type:
- test
- test-app
test-target:
- client
- server
include:
- test-target: client
test-env: 'TEST_SERVER=0'
- test-target: server
test-env: 'TEST_CLIENT=0'
- test-type: test
test-flags: '--'
- test-type: test-app
test-flags: '-- --full-app'
- test-target: client
test-type: test
test-timeout: 20
test-icon: 🕹️
coverage-flags: client,test
- test-target: client
test-type: test-app
test-timeout: 20
test-icon: 🧑💻
coverage-flags: client, test-app
- test-target: server
test-type: test
test-timeout: 20
test-icon: 🔬
coverage-flags: server,test
- test-target: server
test-type: test-app
test-timeout: 20
test-icon: 🤖
coverage-flags: server, test-app
uses: ./.github/workflows/use-tests.yml
secrets: inherit
with:
test-target: ${{ matrix.test-target }}
test-type: ${{ matrix.test-type }}
test-icon: ${{ matrix.test-icon }}
test-env: ${{ matrix.test-env }}
test-flags: ${{ matrix.test-flags }}
test-timeout: ${{ matrix.test-timeout }}
coverage-flags: ${{ matrix.coverage-flags }}