File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 11name : Test and Build
22
3+ env :
4+ GOLANG_VERSION : 1.25
5+
36on :
47 push :
58 branches :
2124 - name : Checkout
2225 uses : actions/checkout@v4
2326
24- - uses : actions/setup-python@v3
27+ - name : Install python
28+ uses : actions/setup-python@v3
29+
30+ - name : Install golang
31+ uses : actions/setup-go@v5
32+ with :
33+ go-version : ${{ env.GOLANG_VERSION }}
34+
35+ - name : Install GoReleaser
36+ uses : goreleaser/goreleaser-action@v6
37+ with :
38+ install-only : true
39+
40+ - name : Run golangci-lint
41+ uses : golangci/golangci-lint-action@v8
42+ with :
43+ version : v2.1
2544
26- - uses : pre-commit/action@v3.0.0
45+ - name : Run pre-commit checks
46+ uses : pre-commit/action@v3.0.0
2747 with :
2848 extra_args : " --all-files --hook-stage manual"
2949
4262 - name : Set up Go
4363 uses : actions/setup-go@v5
4464 with :
45- go-version : ' 1.25 '
65+ go-version : ${{ env.GOLANG_VERSION }}
4666
4767 - name : Install GoReleaser
4868 uses : goreleaser/goreleaser-action@v6
Original file line number Diff line number Diff line change 1919 rev : v2.5.0
2020 hooks :
2121 - id : golangci-lint-full
22+ stages : [pre-commit]
2223 - id : golangci-lint-fmt
24+ stages : [pre-commit]
2325 - repo : https://github.com/pre-commit/pre-commit-hooks
2426 rev : v6.0.0
2527 hooks :
You can’t perform that action at this time.
0 commit comments