44 - pull_request
55
66env :
7- GO_VERSION : " 1.17"
7+ GO_VERSION : " oldstable"
8+ GOTESTSUM_VERSION : " latest"
89
910jobs :
1011 lint :
1112 name : Lint
1213 runs-on : windows-2019
1314 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
1620 with :
1721 go-version : ${{ env.GO_VERSION }}
22+
1823 - name : Run golangci-lint
1924 uses : golangci/golangci-lint-action@v3
2025 with :
21- version : v1.50
26+ version : v1.52
2227 args : >-
2328 --verbose
2429 --timeout=5m
@@ -31,10 +36,14 @@ jobs:
3136 name : Go Generate
3237 runs-on : windows-2019
3338 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
3644 with :
3745 go-version : ${{ env.GO_VERSION }}
46+
3847 - name : Run go generate
3948 shell : pwsh
4049 run : |
4554 Write-Output "::error title=Go Generate::Error running go generate."
4655 exit $LASTEXITCODE
4756 }
57+
4858 - name : Diff
4959 shell : pwsh
5060 run : |
@@ -66,22 +76,34 @@ jobs:
6676 matrix :
6777 os : [windows-2019, windows-2022, ubuntu-latest]
6878 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
7184 with :
7285 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 ./...
7492
7593 build :
7694 name : Build Repo
7795 needs :
7896 - test
7997 runs-on : " windows-2019"
8098 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
83104 with :
84105 go-version : ${{ env.GO_VERSION }}
106+
85107 - run : go build ./pkg/etw/sample/
86108 - run : go build ./tools/etw-provider-gen/
87109 - run : go build ./tools/mkwinsyscall/
0 commit comments