Skip to content

Commit

Permalink
gitActions: Add 'make vendor' check
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
RamLavi committed Dec 30, 2024
1 parent e8abb95 commit fc77c1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ 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"
exit 1
fi
- name: Test
run: make test

Expand Down

0 comments on commit fc77c1c

Please sign in to comment.