1212 tags :
1313 - " *"
1414
15+ env :
16+ GOLANG_VERSION : " 1.16"
17+
1518jobs :
1619 lint :
1720 name : Linting
2225 - name : Lint
2326 uses : golangci/golangci-lint-action@v2
2427 with :
25- version : v1.29
28+ version : v1.36
2629 github-token : ${{ secrets.GITHUB_TOKEN }}
2730 args : " --tests=false"
2831
3538 - name : Format
3639 uses : golangci/golangci-lint-action@v2
3740 with :
38- version : v1.29
41+ version : v1.36
3942 github-token : ${{ secrets.GITHUB_TOKEN }}
4043 args : " --disable-all -E golint,goimports,misspell"
4144
4548 steps :
4649 - name : Checkout
4750 uses : actions/checkout@v2
48- - uses : actions/setup-go@v1
51+ - name : Setup Golang
52+ uses : actions/setup-go@v2
4953 with :
50- go-version : " 1.15 "
54+ go-version : ${{ env.GOLANG_VERSION }}
5155 - uses : actions/cache@v2
5256 with :
5357 path : ~/go/pkg/mod
7478 steps :
7579 - name : Checkout
7680 uses : actions/checkout@v2
77- - uses : actions/setup-go@v1
81+ - name : Setup Golang
82+ uses : actions/setup-go@v2
7883 with :
79- go-version : " 1.15 "
84+ go-version : ${{ env.GOLANG_VERSION }}
8085 - uses : actions/cache@v2
8186 with :
8287 path : ~/go/pkg/mod
@@ -101,9 +106,10 @@ jobs:
101106 steps :
102107 - name : Checkout
103108 uses : actions/checkout@v2
104- - uses : actions/setup-go@v1
109+ - name : Setup Golang
110+ uses : actions/setup-go@v2
105111 with :
106- go-version : " 1.15 "
112+ go-version : ${{ env.GOLANG_VERSION }}
107113 - uses : actions/cache@v2
108114 with :
109115 path : ~/go/pkg/mod
@@ -134,9 +140,10 @@ jobs:
134140 steps :
135141 - name : Checkout
136142 uses : actions/checkout@v2
137- - uses : actions/setup-go@v1
143+ - name : Setup Golang
144+ uses : actions/setup-go@v2
138145 with :
139- go-version : " 1.15 "
146+ go-version : ${{ env.GOLANG_VERSION }}
140147 - uses : actions/cache@v2
141148 with :
142149 path : ~/go/pkg/mod
@@ -176,18 +183,16 @@ jobs:
176183 uses : actions/checkout@v2
177184 with :
178185 fetch-depth : 0
179- - uses : actions/setup-go@v1
186+ - name : Setup Golang
187+ uses : actions/setup-go@v2
180188 with :
181- go-version : " 1.15 "
189+ go-version : ${{ env.GOLANG_VERSION }}
182190 - uses : actions/cache@v2
183191 with :
184192 path : ~/go/pkg/mod
185193 key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
186194 restore-keys : |
187195 ${{ runner.os }}-go-
188- - name : Install dependencies
189- run : |
190- go mod download
191196 - name : Run GoReleaser
192197 uses : goreleaser/goreleaser-action@v2
193198 with :
0 commit comments