File tree Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Original file line number Diff line number Diff line change 1
1
name : Go Matrix
2
- on : [push, pull_request]
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
3
8
4
9
jobs :
5
10
15
20
os : [ubuntu-latest, macos-latest, windows-latest]
16
21
17
22
steps :
18
- # https://github.com/marketplace/actions/checkout
19
- - name : Checkout code
20
- uses : actions/checkout@v4
21
-
22
- # https://github.com/marketplace/actions/setup-go-environment
23
- - name : Set up Go ${{ matrix.go-version }}
24
- uses : actions/setup-go@v5
23
+ - uses : actions/checkout@v4
24
+ - uses : actions/setup-go@v5
25
25
with :
26
26
go-version : ${{ matrix.go-version }}
27
27
- name : Test
Original file line number Diff line number Diff line change @@ -13,19 +13,12 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
env :
15
15
GO_VERSION : stable
16
- GOLANGCI_LINT_VERSION : v1.62.2
16
+ GOLANGCI_LINT_VERSION : v1.63.4
17
17
CGO_ENABLED : 0
18
18
19
19
steps :
20
- # https://github.com/marketplace/actions/checkout
21
- - name : Check out code
22
- uses : actions/checkout@v4
23
- with :
24
- fetch-depth : 0
25
-
26
- # https://github.com/marketplace/actions/setup-go-environment
27
- - name : Set up Go ${{ env.GO_VERSION }}
28
- uses : actions/setup-go@v5
20
+ - uses : actions/checkout@v4
21
+ - uses : actions/setup-go@v5
29
22
with :
30
23
go-version : ${{ env.GO_VERSION }}
31
24
You can’t perform that action at this time.
0 commit comments