File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,24 +5,25 @@ on: [push, pull_request]
55jobs :
66 build-test-lint :
77 runs-on : ubuntu-latest
8+
89 steps :
910 - uses : actions/checkout@v4
11+
1012 - name : Set up Go
11- uses : actions/setup-go@v4
13+ uses : actions/setup-go@v5
1214 with :
1315 go-version : ' 1.25'
14- - name : Cache Go modules
15- uses : actions/cache@v4
16- with :
17- path : ~/.cache/go-build
18- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
16+ cache : true # built-in module caching
17+
1918 - name : Install golangci-lint
20- run : |
21- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.0
22- - name : Lint
23- run : golangci-lint run ./...
19+ uses : golangci/golangci-lint-action@v4
20+ with :
21+ version : v1.59.0
22+ args : --timeout=5m
23+
2424 - name : Test
2525 run : go test -v ./...
26+
2627 - name : Build
2728 run : go build -v ./...
2829
You can’t perform that action at this time.
0 commit comments