Skip to content

Commit 19208fb

Browse files
feat: add GitHub Actions workflow for CI testing and linting
1 parent 54e86d0 commit 19208fb

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,25 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Set up Go
17-
uses: actions/setup-go@v5
16+
- uses: actions/setup-go@v5
1817
with:
19-
go-version-file: 'go.mod'
18+
go-version-file: go.mod
2019
cache: true
2120

22-
- name: Build
23-
run: go build ./...
24-
25-
- name: Test
26-
run: go test -v ./...
21+
- run: go build ./...
22+
- run: go test -v ./...
2723

2824
lint:
2925
runs-on: ubuntu-latest
3026
steps:
3127
- uses: actions/checkout@v4
3228

33-
- name: Set up Go
34-
uses: actions/setup-go@v5
29+
- uses: actions/setup-go@v5
3530
with:
36-
go-version-file: 'go.mod'
31+
go-version-file: go.mod
3732
cache: true
3833

39-
- name: Lint
40-
uses: golangci/golangci-lint-action@v7 # ← was v6
34+
- uses: golangci/golangci-lint-action@v7
4135
with:
42-
version: v2.8.0
36+
version: v2.10.0
4337

0 commit comments

Comments
 (0)