File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,21 @@ name: Go
2
2
3
3
on :
4
4
push :
5
- branches : " **"
5
+ branches :
6
+ - main
6
7
paths-ignore :
7
- - " docs/**"
8
+ - docs/**
8
9
pull_request :
9
- branches : " **"
10
+ branches :
11
+ - main
10
12
paths-ignore :
11
- - " docs/**"
13
+ - docs/**
12
14
13
15
jobs :
14
16
test :
15
17
strategy :
16
18
matrix :
17
- go-version : [1.22.x, 1.23.x]
19
+ go-version : [1.22.x, 1.23.x, 1.24.x ]
18
20
os : [ubuntu-latest, macos-latest, windows-latest]
19
21
20
22
runs-on : ${{ matrix.os }}
31
33
- name : Build
32
34
run : go build -v ./...
33
35
34
- - name : Test
35
- run : go test -v ./...
36
-
37
- - name : Cover
36
+ - name : Test & Cover
38
37
run : go test -race -coverprofile="coverage.out" -covermode=atomic ./...
39
38
40
39
- name : Upload coverage reports to Codecov
50
49
- name : Set up Go
51
50
uses : actions/setup-go@v5
52
51
with :
53
- go-version : " 1.22 "
52
+ go-version-file : go.mod
54
53
55
54
- name : golangci-lint
56
55
uses : golangci/golangci-lint-action@v5
You can’t perform that action at this time.
0 commit comments