4
4
- pull_request
5
5
6
6
env :
7
- GO_VERSION : " 1.17"
7
+ GO_VERSION : " oldstable"
8
+ GOTESTSUM_VERSION : " latest"
8
9
9
10
jobs :
10
11
lint :
11
12
name : Lint
12
13
runs-on : windows-2019
13
14
steps :
14
- - uses : actions/checkout@v3
15
- - uses : actions/setup-go@v3
15
+ - name : Checkout
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Install go
19
+ uses : actions/setup-go@v4
16
20
with :
17
21
go-version : ${{ env.GO_VERSION }}
22
+
18
23
- name : Run golangci-lint
19
24
uses : golangci/golangci-lint-action@v3
20
25
with :
21
- version : v1.50
26
+ version : v1.52
22
27
args : >-
23
28
--verbose
24
29
--timeout=5m
@@ -31,10 +36,14 @@ jobs:
31
36
name : Go Generate
32
37
runs-on : windows-2019
33
38
steps :
34
- - uses : actions/checkout@v3
35
- - uses : actions/setup-go@v3
39
+ - name : Checkout
40
+ uses : actions/checkout@v3
41
+
42
+ - name : Install go
43
+ uses : actions/setup-go@v4
36
44
with :
37
45
go-version : ${{ env.GO_VERSION }}
46
+
38
47
- name : Run go generate
39
48
shell : pwsh
40
49
run : |
45
54
Write-Output "::error title=Go Generate::Error running go generate."
46
55
exit $LASTEXITCODE
47
56
}
57
+
48
58
- name : Diff
49
59
shell : pwsh
50
60
run : |
@@ -66,22 +76,34 @@ jobs:
66
76
matrix :
67
77
os : [windows-2019, windows-2022, ubuntu-latest]
68
78
steps :
69
- - uses : actions/checkout@v3
70
- - uses : actions/setup-go@v3
79
+ - name : Checkout
80
+ uses : actions/checkout@v3
81
+
82
+ - name : Install go
83
+ uses : actions/setup-go@v4
71
84
with :
72
85
go-version : ${{ env.GO_VERSION }}
73
- - run : go test -gcflags=all=-d=checkptr -v ./...
86
+
87
+ - name : Install gotestsum
88
+ run : go install gotest.tools/gotestsum@${{ env.GOTESTSUM_VERSION }}
89
+
90
+ - name : Test repo
91
+ run : gotestsum --format standard-verbose --debug -- -gcflags=all=-d=checkptr -v ./...
74
92
75
93
build :
76
94
name : Build Repo
77
95
needs :
78
96
- test
79
97
runs-on : " windows-2019"
80
98
steps :
81
- - uses : actions/checkout@v3
82
- - uses : actions/setup-go@v3
99
+ - name : Checkout
100
+ uses : actions/checkout@v3
101
+
102
+ - name : Install go
103
+ uses : actions/setup-go@v4
83
104
with :
84
105
go-version : ${{ env.GO_VERSION }}
106
+
85
107
- run : go build ./pkg/etw/sample/
86
108
- run : go build ./tools/etw-provider-gen/
87
109
- run : go build ./tools/mkwinsyscall/
0 commit comments