11name : Build
2+
23on : [push]
34
5+ env :
6+ GO_VERSION : ' 1.23'
7+ GOLANG_CI_VERSION : ' 1.61'
8+
49jobs :
510
611 linting :
914
1015 steps :
1116 - name : Checkout
12- uses : actions/checkout@v3
17+ uses : actions/checkout@v4
1318 with :
1419 fetch-depth : 0
1520
16- - name : golangci-lint
17- uses : golangci/golangci-lint-action@v3
21+ - uses : golangci/golangci -lint-action@v6
22+ name : " GolangCI-Lint ${{ env.GOLANG_CI_VERSION }} "
1823 with :
19- version : latest
24+ version : v${{ env.GOLANG_CI_VERSION }}
25+ args : --timeout=5m
2026
2127 test :
2228 name : Test
2329 runs-on : ubuntu-latest
2430
2531 steps :
2632 - name : Install Go
27- uses : actions/setup-go@v4
33+ uses : actions/setup-go@v5
2834 with :
29- go-version : " 1.21 "
35+ go-version : ${{ env.GO_VERSION }}
3036
3137 - name : Checkout
32- uses : actions/checkout@v3
38+ uses : actions/checkout@v4
3339 with :
3440 fetch-depth : 0
3541
@@ -48,12 +54,12 @@ jobs:
4854
4955 steps :
5056 - name : Install Go
51- uses : actions/setup-go@v4
57+ uses : actions/setup-go@v5
5258 with :
53- go-version : " 1.21 "
59+ go-version : ${{ env.GO_VERSION }}
5460
5561 - name : Checkout
56- uses : actions/checkout@v3
62+ uses : actions/checkout@v4
5763 with :
5864 fetch-depth : 0
5965
@@ -65,15 +71,15 @@ jobs:
6571 password : ${{ secrets.GITHUB_TOKEN }}
6672
6773 - name : Snapshot
68- uses : goreleaser/goreleaser-action@v5
74+ uses : goreleaser/goreleaser-action@v6
6975 with :
7076 distribution : goreleaser
7177 version : latest
7278 args : release --snapshot
7379
7480 - name : Release
7581 if : startsWith(github.ref, 'refs/tags/')
76- uses : goreleaser/goreleaser-action@v5
82+ uses : goreleaser/goreleaser-action@v6
7783 with :
7884 distribution : goreleaser
7985 version : latest
0 commit comments