Skip to content

Commit

Permalink
chore: update github action to check only go mod tidy
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Giese <[email protected]>
  • Loading branch information
tobiasgiese committed Jul 18, 2024
1 parent 56bc301 commit 1b01d28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,10 @@ undeploy-k8s: export OPERATOR_EXEC=kubectl
undeploy-k8s: undeploy

deps-update:
go mod tidy && \
go mod vendor
go mod tidy

check-deps: deps-update
@set +e; git diff --quiet HEAD go.sum go.mod vendor; \
@set +e; git diff --quiet HEAD go.sum go.mod; \
if [ $$? -eq 1 ]; \
then echo -e "\ngo modules are out of date. Please commit after running 'make deps-update' command\n"; \
exit 1; fi
Expand Down

0 comments on commit 1b01d28

Please sign in to comment.