File tree Expand file tree Collapse file tree 1 file changed +24
-9
lines changed
Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,35 @@ name: Go Tests
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
88
99jobs :
1010 test :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v4
13+ - uses : actions/checkout@v4
1414
15- - name : Set up Go
16- uses : actions/setup-go@v5
17- with :
18- go-version : ' stable'
15+ - name : Set up Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : " stable"
1919
20- - name : Test
21- run : go test -count=1 -v ./...
20+ - name : Test
21+ run : go test -count=1 -v ./...
22+
23+ lint :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v4
27+
28+ - name : Set up Go
29+ uses : actions/setup-go@v5
30+ with :
31+ go-version : " stable"
32+
33+ - name : golangci-lint
34+ uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
35+ with :
36+ version : v2.1
You can’t perform that action at this time.
0 commit comments