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