File tree Expand file tree Collapse file tree 2 files changed +62
-40
lines changed Expand file tree Collapse file tree 2 files changed +62
-40
lines changed Original file line number Diff line number Diff line change @@ -145,50 +145,10 @@ jobs:
145
145
name : coverage
146
146
path : ./coverage
147
147
148
- test-os :
149
- runs-on : ${{ matrix.os }}
150
- strategy :
151
- fail-fast : false
152
- matrix :
153
- os :
154
- # - ubuntu-20.04
155
- # - macOS-11
156
- - windows-2022
157
- steps :
158
- -
159
- name : Checkout
160
- uses : actions/checkout@v3
161
- -
162
- name : Set up Go
163
- uses : actions/setup-go@v3
164
- with :
165
- go-version : ${{ env.GO_VERSION }}
166
- cache : true
167
- -
168
- name : Go mod
169
- run : |
170
- go mod download
171
- -
172
- name : Test
173
- env :
174
- TMPDIR : ${{ runner.temp }}
175
- SKIP_INTEGRATION_TESTS : 1
176
- run : |
177
- mkdir -p ./coverage
178
- go test -coverprofile=./coverage/coverage-${{ github.job }}-${{ matrix.os }}.txt -covermode=atomic ${TESTFLAGS} ./...
179
- shell : bash
180
- -
181
- name : Upload coverage file
182
- uses : actions/upload-artifact@v3
183
- with :
184
- name : coverage
185
- path : ./coverage
186
-
187
148
upload-coverage :
188
149
runs-on : ubuntu-20.04
189
150
needs :
190
151
- test
191
- - test-os
192
152
steps :
193
153
-
194
154
name : Checkout
Original file line number Diff line number Diff line change
1
+ name : test-os
2
+
3
+ concurrency :
4
+ group : ${{ github.workflow }}-${{ github.ref }}
5
+ cancel-in-progress : true
6
+
7
+ on :
8
+ schedule :
9
+ - cron : ' 0 10 * * *'
10
+ workflow_dispatch :
11
+ push :
12
+ branches :
13
+ - ' master'
14
+ pull_request :
15
+ paths-ignore :
16
+ - ' README.md'
17
+ - ' docs/**'
18
+ - ' frontend/dockerfile/docs/**'
19
+
20
+ env :
21
+ GO_VERSION : " 1.19"
22
+
23
+ jobs :
24
+ test :
25
+ runs-on : ${{ matrix.os }}
26
+ strategy :
27
+ fail-fast : false
28
+ matrix :
29
+ os :
30
+ # - ubuntu-20.04
31
+ # - macOS-11
32
+ - windows-2022
33
+ steps :
34
+ -
35
+ name : Checkout
36
+ uses : actions/checkout@v3
37
+ -
38
+ name : Set up Go
39
+ uses : actions/setup-go@v3
40
+ with :
41
+ go-version : ${{ env.GO_VERSION }}
42
+ cache : true
43
+ -
44
+ name : Go mod
45
+ run : |
46
+ go mod download
47
+ -
48
+ name : Test
49
+ env :
50
+ TMPDIR : ${{ runner.temp }}
51
+ SKIP_INTEGRATION_TESTS : 1
52
+ run : |
53
+ mkdir -p ./coverage
54
+ go test -coverprofile=./coverage/coverage.txt -covermode=atomic ${TESTFLAGS} ./...
55
+ shell : bash
56
+ -
57
+ name : Send to Codecov
58
+ uses : codecov/codecov-action@v3
59
+ with :
60
+ files : ./coverage/coverage.txt
61
+ env_vars : RUNNER_OS
62
+ flags : unit
You can’t perform that action at this time.
0 commit comments