Skip to content

Commit 1c1e336

Browse files
committed
test go 1.24
1 parent de49384 commit 1c1e336

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/go.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ name: Go
22

33
on:
44
push:
5-
branches: "**"
5+
branches:
6+
- main
67
paths-ignore:
7-
- "docs/**"
8+
- docs/**
89
pull_request:
9-
branches: "**"
10+
branches:
11+
- main
1012
paths-ignore:
11-
- "docs/**"
13+
- docs/**
1214

1315
jobs:
1416
test:
1517
strategy:
1618
matrix:
17-
go-version: [1.22.x, 1.23.x]
19+
go-version: [1.22.x, 1.23.x, 1.24.x]
1820
os: [ubuntu-latest, macos-latest, windows-latest]
1921

2022
runs-on: ${{ matrix.os }}
@@ -31,10 +33,7 @@ jobs:
3133
- name: Build
3234
run: go build -v ./...
3335

34-
- name: Test
35-
run: go test -v ./...
36-
37-
- name: Cover
36+
- name: Test & Cover
3837
run: go test -race -coverprofile="coverage.out" -covermode=atomic ./...
3938

4039
- name: Upload coverage reports to Codecov
@@ -50,7 +49,7 @@ jobs:
5049
- name: Set up Go
5150
uses: actions/setup-go@v5
5251
with:
53-
go-version: "1.22"
52+
go-version-file: go.mod
5453

5554
- name: golangci-lint
5655
uses: golangci/golangci-lint-action@v5

0 commit comments

Comments
 (0)