@@ -11,14 +11,14 @@ jobs:
11
11
# We already run the current golangci-lint in tests, but here we test
12
12
# our GitHub action with the latest stable golangci-lint.
13
13
golangci-lint :
14
- name : golangci-lint
15
14
runs-on : ubuntu-latest
16
15
steps :
17
16
- uses : actions/checkout@v2
18
17
- name : lint
19
18
uses : golangci/golangci-lint-action@v2
20
19
with :
21
20
version : latest
21
+ args : --timeout 4m
22
22
tests-on-windows :
23
23
needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
24
24
runs-on : windows-latest
@@ -28,20 +28,29 @@ jobs:
28
28
uses : actions/setup-go@v2
29
29
with :
30
30
go-version : 1.14 # test only the latest go version to speed up CI
31
- - name : Run tests on Windows
31
+ - name : Run tests
32
32
run : make.exe test
33
33
continue-on-error : true
34
+ tests-on-macos :
35
+ needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
36
+ runs-on : macos-latest
37
+ steps :
38
+ - uses : actions/checkout@v2
39
+ - name : Install Go
40
+ uses : actions/setup-go@v2
41
+ with :
42
+ go-version : 1.14 # test only the latest go version to speed up CI
43
+ - name : Run tests
44
+ run : make test
45
+ continue-on-error : true
34
46
tests-on-unix :
35
47
needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
36
- runs-on : ${{ matrix.os }}
48
+ runs-on : ubuntu-latest
37
49
strategy :
38
50
matrix :
39
51
golang :
40
52
- 1.13
41
53
- 1.14
42
- os :
43
- - ubuntu-latest
44
- # don't enable mac os because it's machines are very slow
45
54
steps :
46
55
- uses : actions/checkout@v2
47
56
- name : Install Go
54
63
key : ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
55
64
restore-keys : |
56
65
${{ runner.os }}-go-${{ matrix.golang }}-
57
- - name : Run tests on Unix-like operating systems
66
+ - name : Run tests
58
67
run : make test
59
68
check_generated :
60
69
needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
0 commit comments