File tree 1 file changed +23
-7
lines changed
1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,20 @@ jobs:
12
12
# our GitHub action with the latest stable golangci-lint.
13
13
golangci-lint :
14
14
name : golangci-lint
15
- runs-on : ubuntu-latest
15
+ strategy :
16
+ matrix :
17
+ os :
18
+ - ubuntu-latest
19
+ - macos-latest
20
+ - windows-latest
21
+ runs-on : ${{ matrix.os }}
16
22
steps :
17
23
- uses : actions/checkout@v2
18
24
- name : lint
19
25
uses : golangci/golangci-lint-action@v2
20
26
with :
21
27
version : latest
28
+ args : --timeout 4m
22
29
tests-on-windows :
23
30
needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
24
31
runs-on : windows-latest
@@ -28,20 +35,29 @@ jobs:
28
35
uses : actions/setup-go@v2
29
36
with :
30
37
go-version : 1.14 # test only the latest go version to speed up CI
31
- - name : Run tests on Windows
38
+ - name : Run tests
32
39
run : make.exe test
33
40
continue-on-error : true
41
+ tests-on-macos :
42
+ needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
43
+ runs-on : macos-latest
44
+ steps :
45
+ - uses : actions/checkout@v2
46
+ - name : Install Go
47
+ uses : actions/setup-go@v2
48
+ with :
49
+ go-version : 1.14 # test only the latest go version to speed up CI
50
+ - name : Run tests
51
+ run : make test
52
+ continue-on-error : true
34
53
tests-on-unix :
35
54
needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
36
- runs-on : ${{ matrix.os }}
55
+ runs-on : ubuntu-latest
37
56
strategy :
38
57
matrix :
39
58
golang :
40
59
- 1.13
41
60
- 1.14
42
- os :
43
- - ubuntu-latest
44
- # don't enable mac os because it's machines are very slow
45
61
steps :
46
62
- uses : actions/checkout@v2
47
63
- name : Install Go
54
70
key : ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
55
71
restore-keys : |
56
72
${{ runner.os }}-go-${{ matrix.golang }}-
57
- - name : Run tests on Unix-like operating systems
73
+ - name : Run tests
58
74
run : make test
59
75
check_generated :
60
76
needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
You can’t perform that action at this time.
0 commit comments