Skip to content

Commit dff2b3e

Browse files
committed
fix
1 parent 6874970 commit dff2b3e

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,25 @@ on: [push, pull_request]
55
jobs:
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

0 commit comments

Comments
 (0)