File tree 1 file changed +23
-15
lines changed
1 file changed +23
-15
lines changed Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
branches :
7
7
- main
8
+ - release-*
8
9
push :
9
10
branches :
10
11
- main
12
+ - release-*
13
+
14
+ env :
15
+ GO_VERSION : ' 1.20'
16
+
11
17
jobs :
12
18
Test :
13
19
name : Unit Test
@@ -17,10 +23,10 @@ jobs:
17
23
uses : actions/checkout@v3
18
24
with :
19
25
fetch-depth : 0
20
- - name : Set up Go 1.19
26
+ - name : Set up Go
21
27
uses : actions/setup-go@v2
22
28
with :
23
- go-version : 1.19
29
+ go-version : ${{ env.GO_VERSION }}
24
30
25
31
- run : go build ./...
26
32
- run : go vet ./...
@@ -38,19 +44,21 @@ jobs:
38
44
name : Golang Lint
39
45
runs-on : ubuntu-latest
40
46
steps :
41
- - name : Checkout
42
- uses : actions/checkout@v3
43
- with :
44
- fetch-depth : 0
45
- - name : Set up Go 1.19
46
- uses : actions/setup-go@v2
47
- with :
48
- go-version : 1.19
49
- - name : golangci-lint
50
- uses : golangci/golangci-lint-action@v3
51
- with :
52
- # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
53
- version : latest
47
+ - name : Checkout
48
+ uses : actions/checkout@v3
49
+ with :
50
+ fetch-depth : 0
51
+ - name : Set up Go
52
+ uses : actions/setup-go@v4
53
+ with :
54
+ go-version : ${{ env.GO_VERSION }}
55
+ cache : false
56
+ - name : golangci-lint
57
+ uses : golangci/golangci-lint-action@v3
58
+ with :
59
+ # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
60
+ version : v1.53
61
+ args : --timeout=30m
54
62
55
63
# Lints Pull Request commits with commitlint.
56
64
#
You can’t perform that action at this time.
0 commit comments