Skip to content

Commit 0055a93

Browse files
committed
ci: use matrix strategy to test go1.23, go1.24, go1.25
- Adds `go vet` for linting - Adds `staticcheck` for static analysis
1 parent 999d1b1 commit 0055a93

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ on:
1212
jobs:
1313
test:
1414
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
go-version: [ '1.23', '1.24', '1.25' ]
1518
steps:
1619
- uses: actions/checkout@v4
17-
- name: Setup Go
18-
uses: actions/setup-go@v5
20+
- uses: actions/setup-go@v5
1921
with:
20-
go-version-file: go.mod
21-
cache: true
22-
- name: Install dependencies
23-
run: |
24-
go get .
25-
- name: Run tests
26-
run: go test -race -v ./...
22+
go-version: ${{ matrix.go-version }}
23+
- run: go mod download
24+
- run: go vet ./...
25+
- uses: dominikh/staticcheck-action@v1
26+
with: { install-go: false }
27+
- run: go test -v ./...

0 commit comments

Comments
 (0)