File tree Expand file tree Collapse file tree 4 files changed +1161
-21
lines changed Expand file tree Collapse file tree 4 files changed +1161
-21
lines changed Original file line number Diff line number Diff line change @@ -156,3 +156,19 @@ jobs:
156
156
});
157
157
158
158
return result;
159
+ validate-goreleaser :
160
+ runs-on : ubuntu-latest
161
+ steps :
162
+ - name : Checkout code
163
+ uses : actions/checkout@v4
164
+ - name : Install Go
165
+ uses : actions/setup-go@v5
166
+ with :
167
+ go-version : 1.24.x
168
+ - name : Run GoReleaser
169
+ uses : goreleaser/goreleaser-action@v5
170
+ with :
171
+ version : v2.6.1
172
+ install-only : true
173
+ - name : Validate Goreleaser
174
+ run : make goreleaser GORELEASER_ARGS="--skip=validate --clean --snapshot" # snapshot is needed as local git has no tags
Original file line number Diff line number Diff line change 70
70
golangci-lint fmt
71
71
72
72
goreleaser-bin :
73
- $(GO_BIN ) install github.com/goreleaser/goreleaser/v2@latest
73
+ $(GO_BIN ) get -modfile=tools.mod -tool github.com/goreleaser/goreleaser/v2@latest
74
74
75
75
# You can pass flags to goreleaser via GORELEASER_ARGS
76
76
# --skip=validate will skip the checks
@@ -79,7 +79,7 @@ goreleaser-bin:
79
79
# e.g.
80
80
# make goreleaser GORELEASER_ARGS="--skip=validate --clean"
81
81
goreleaser : goreleaser-bin
82
- @GOHOSTOS=" ${GOHOSTOS} " GOHOSTARCH=" ${GOHOSTARCH} " tool -modfile=tools.mod goreleaser build ${GORELEASER_ARGS}
82
+ @GOHOSTOS=" ${GOHOSTOS} " GOHOSTARCH=" ${GOHOSTARCH} " $( GO_BIN ) tool -modfile=tools.mod goreleaser build ${GORELEASER_ARGS}
83
83
84
84
test-compile :
85
85
@if [ " $( TEST) " = " ./..." ]; then \
You can’t perform that action at this time.
0 commit comments