Skip to content

Commit

Permalink
feat: Add checking that all vendor files are commited
Browse files Browse the repository at this point in the history
This commit modifies the Makefile to execute script
that checks whether all vendor files are committed.

Signed-off-by: Ondrej Pokorny <opokorny@redhat.com>
  • Loading branch information
opokornyy committed Jun 7, 2023
1 parent 2e40ef3 commit d8710a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ jobs:

- name: Build and Test csv-generator
run: make container-build && ./tests/e2e-test-csv-generator.sh

check_vendor_files:
runs_on: ubuntu-latest
steps:
- name: Check vendor files
run: ./hack/check-vendor-changes.sh
8 changes: 8 additions & 0 deletions hack/check-vendor-changes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Run git status and check if there are changes in vendor/ files
if git status --porcelain | grep -q "^ M vendor/*"; then
echo "Vendor files are not commited"
exit 1
fi

0 comments on commit d8710a9

Please sign in to comment.