Skip to content

Commit

Permalink
chore(ci): Prevent uncommitted changes in worktree
Browse files Browse the repository at this point in the history
A simple addition to some of the workflows that should aid in checking whether
    we forgot to commit the current state of a lockfile etc.
  • Loading branch information
klochowicz committed Sep 1, 2023
1 parent ad72fc1 commit 50303ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ jobs:
run: dart format --output=none --set-exit-if-changed --line-length 100 $(find . -name "*.dart" -not \( -name "*.*freezed.dart" -o -name "*.mocks.dart" \) )
- name: Analyze flutter code
run: just lint-flutter
- name: Check for uncommitted changes
if: always()
run: |
git diff-index --quiet HEAD || (echo "There are changes in the working tree after using Flutter." && exit 1)
unit-tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -176,3 +180,7 @@ jobs:
- name: show disk space after tests
if: always()
run: df -h
- name: Check for uncommitted changes
if: always()
run: |
git diff-index --quiet HEAD || (echo "There are changes in the working tree after running tests." && exit 1)

0 comments on commit 50303ec

Please sign in to comment.