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 Jan 7, 2025
1 parent 80e6e1c commit ab1dbbe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab1dbbe

Please sign in to comment.