feat: add go.work.sum update check to prepare workflow (#1650)
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
This commit is contained in:
parent
275c73c95a
commit
77204a005a
|
|
@ -15,6 +15,8 @@ jobs:
|
|||
go-version: "1.24"
|
||||
- name: Prepare
|
||||
run: make clean build/prepare
|
||||
- name: Update go.work.sum file
|
||||
run: make update/worksum
|
||||
- name: Check if there are uncommitted file changes
|
||||
run: |
|
||||
clean=$(git status --porcelain)
|
||||
|
|
|
|||
5
Makefile
5
Makefile
|
|
@ -220,6 +220,11 @@ deps: bin/golangci-lint bin/goverter bin/openapi-generator-cli bin/envtest
|
|||
vendor:
|
||||
${GO} mod vendor
|
||||
|
||||
.PHONY: update/worksum
|
||||
update/worksum:
|
||||
${GO} clean --modcache
|
||||
${GO} mod download
|
||||
|
||||
# WARNING: DO NOT DELETE THIS TARGET, USED BY Dockerfile!!!
|
||||
.PHONY: build/prepare
|
||||
build/prepare: gen vet lint
|
||||
|
|
|
|||
Loading…
Reference in New Issue