File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Go
2+ on : [push]
3+ jobs :
4+ build :
5+ name : Build
6+ runs-on : ${{ matrix.os }}
7+ strategy :
8+ matrix :
9+ os : [macos-latest, ubuntu-latest]
10+ goversion : ["1.24", "1.25"]
11+ steps :
12+ - name : Set up Go ${{matrix.goversion}} on ${{matrix.os}}
13+ uses : actions/setup-go@v6
14+ with :
15+ go-version : ${{matrix.goversion}}
16+ id : go
17+
18+ - name : Check out code into the Go module directory
19+ uses : actions/checkout@v5
20+
21+ - name : gofmt
22+ run : |
23+ [[ -z $(gofmt -l $(find . -name '*.go') ) ]]
24+
25+ - name : Get dependencies
26+ run : go mod download
27+
28+ - name : Vet
29+ env :
30+ GO111MODULE : on
31+ run : go vet -mod=readonly ./...
32+
33+ - name : Test
34+ env :
35+ GO111MODULE : on
36+ run : go test -mod=readonly -v -count 2 ./...
37+
38+ - name : Race Test
39+ env :
40+ GO111MODULE : on
41+ run : go test -race -mod=readonly -v -count 2 ./...
You can’t perform that action at this time.
0 commit comments