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:
Alessio Pragliola 2025-09-23 11:06:18 +02:00 committed by GitHub
parent 275c73c95a
commit 77204a005a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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