Skip to content

Commit 4bc1d9e

Browse files
Update CI workflow (#14)
1 parent 6cc9194 commit 4bc1d9e

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/ci.yml

+22-7
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,46 @@ jobs:
1717
name: Test
1818
runs-on: ubuntu-latest
1919

20+
strategy:
21+
matrix:
22+
go:
23+
- "1.18"
24+
- "1.19"
25+
- "1.20"
26+
- "1.21"
27+
- "1.22"
28+
- "1.23"
29+
2030
steps:
2131
- name: Checkout
22-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
2333

2434
- name: Setup Go
25-
uses: actions/setup-go@v3
35+
uses: actions/setup-go@v5
2636
with:
27-
go-version-file: go.mod
37+
go-version: ${{ matrix.go }}
2838
check-latest: true
2939

3040
- name: Build
3141
run: go build -v ./...
3242

3343
- name: Test
34-
run: go test -v -coverprofile=cover.out -shuffle on ./...
44+
run: go test -v -coverprofile=coverage.txt -shuffle on ./...
3545

3646
lint:
3747
name: Lint
3848
runs-on: ubuntu-latest
39-
4049
steps:
4150
- name: Checkout
42-
uses: actions/checkout@v3
51+
uses: actions/checkout@v4
52+
53+
- name: Setup Go
54+
uses: actions/setup-go@v5
55+
with:
56+
go-version-file: go.mod
57+
check-latest: true
4358

4459
- name: Lint
45-
uses: golangci/golangci-lint-action@v2
60+
uses: golangci/golangci-lint-action@v6
4661
with:
4762
version: latest

0 commit comments

Comments
 (0)