File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 1- name : Go
1+ name : Go CI
2+
23on :
34 pull_request :
45 branches : [ "main" ]
89 build :
910 runs-on : ubuntu-latest
1011 steps :
11- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v4
13+
1214 - name : Setup Go
13- uses : actions/setup-go@v2
15+ uses : actions/setup-go@v4
1416 with :
1517 go-version : ' 1.23.x'
18+ cache : true
19+
1620 - name : Install dependencies
17- run : go get .
21+ run : go mod tidy
22+
1823 - name : Build
1924 run : go build -v ./...
2025
2126 test :
2227 runs-on : ubuntu-latest
2328 needs : build
2429 steps :
25- - uses : actions/checkout@v2
30+ - uses : actions/checkout@v4
31+
2632 - name : Setup Go
27- uses : actions/setup-go@v2
33+ uses : actions/setup-go@v4
2834 with :
2935 go-version : ' 1.23.x'
36+ cache : true
37+
3038 - name : Install dependencies
31- run : go get .
32- - name : Test with the Go CLI
33- run : go test ./...
39+ run : go mod tidy
40+
41+ - name : Run tests
42+ run : go test -v -race ./...
You can’t perform that action at this time.
0 commit comments