Skip to content

Commit

Permalink
fix: add check for uncommitted file changes
Browse files Browse the repository at this point in the history
Signed-off-by: Dhiraj Bokde <[email protected]>
  • Loading branch information
dhirajsb committed Nov 19, 2024
1 parent 3982ccc commit 2408994
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ jobs:
id: go
- name: Check out code
uses: actions/checkout@v3
- name: Check uncommitted file changes
run: |
make generate manifests
clean=$(git status --porcelain)
if [[ -z "$clean" ]]; then
echo "Empty git status --porcelain: $clean"
else
echo "Uncommitted file changes detected: $clean"
git diff
exit 1
fi
- name: Run make test
run: |
make test
Expand Down

0 comments on commit 2408994

Please sign in to comment.