From ab1dbbeec5cde1a67f2233c608ccbab40bda1acd Mon Sep 17 00:00:00 2001 From: Ram Lavi Date: Mon, 30 Dec 2024 21:13:39 +0200 Subject: [PATCH] gitActions: Add 'make vendor' check Add a step to run 'make vendor' to ensure the vendor directory is up-to-date, failing the workflow if changes are needed. Signed-off-by: Ram Lavi --- .github/workflows/check.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 09848070..29f8b135 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -34,6 +34,15 @@ jobs: version: v1.54.2 args: --timeout 3m --verbose cmd/... pkg/... + - name: Check vendors + run: | + make vendor + if [[ -n "$(git status --porcelain)" ]]; then + echo "Vendor is out-of-date. Please run 'make vendor' locally and commit the changes" + git status --porcelain + exit 1 + fi + - name: Test run: make test