Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
ci: Fail early if the git repo is dirty post build+test
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Golan <rgolan@redhat.com>
  • Loading branch information
rgolangh committed Apr 19, 2023
1 parent f95b20f commit bab8c36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
mvn test --file ./pom.xml
mvn jacoco:report-aggregate
- name: Check generated files are up to date
run: |
let status="$(git status --porcelain)"
if [ -n "${status}" ]; then echo "There are uncommitted changes:"; echo "${status}"; exit 1; fi
- name: Upload current-info
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit bab8c36

Please sign in to comment.