File tree Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -2,22 +2,35 @@ name: golangci-lint
2
2
on :
3
3
push :
4
4
tags :
5
- - v *
5
+ - v1 *
6
6
branches :
7
- - master
8
- - main
7
+ - v1.x.x
9
8
pull_request :
10
9
jobs :
11
10
golangci :
12
11
name : lint
13
- runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ go-version : [
15
+ 1.17.x,
16
+ 1.18.x,
17
+ # 1.19.x
18
+ ]
19
+ os : [ubuntu-latest]
20
+ runs-on : ${{ matrix.os }}
14
21
steps :
15
- - uses : actions/checkout@v2
22
+ - name : Checkout code
23
+ uses : actions/checkout@v3
24
+ - name : Install Go
25
+ uses : actions/setup-go@v4
26
+ with :
27
+ go-version : ${{ matrix.go-version }}
16
28
- name : golangci-lint
17
- uses : golangci/golangci-lint-action@v2
29
+ uses : golangci/golangci-lint-action@v3
18
30
with :
19
31
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
20
- version : v1.29
32
+ # version: v1.29
33
+ version : v1.53
21
34
22
35
# Optional: working directory, useful for monorepos
23
36
# working-directory: somedir
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ jobs:
22
22
runs-on : ${{ matrix.os }}
23
23
steps :
24
24
- name : Install Go
25
- uses : actions/setup-go@v2
25
+ uses : actions/setup-go@v4
26
26
with :
27
27
go-version : ${{ matrix.go-version }}
28
28
- name : Checkout code
29
- uses : actions/checkout@v2
29
+ uses : actions/checkout@v3
30
30
- name : Test
31
31
run : GIT_BRANCH=${GIT_REF:11} DOCKER_GATEWAY_HOST=172.17.0.1 DOCKER_HOST_HTTP="http://172.17.0.1" make
32
32
- name : Install goveralls
You can’t perform that action at this time.
0 commit comments