Skip to content

Commit

Permalink
ci: Check if working tree is dirty
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Nov 20, 2023
1 parent 4b7739d commit c90adb0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- '*'

jobs:
goreleaser:
test:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -31,3 +31,11 @@ jobs:
run: |
make tidy
make test
-
name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
git diff
echo 'run make test and commit changes'
exit 1
fi

0 comments on commit c90adb0

Please sign in to comment.