Skip to content

Commit

Permalink
CI: Force make rewrite to be synced with committed files. (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
feltroidprime authored Oct 18, 2024
1 parent c364095 commit 39c8d21
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/hydra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
toolchain: stable
override: true
profile: minimal
components: rustfmt

- uses: actions/checkout@v3
- name: Set up Python 3.10.14
Expand All @@ -50,3 +51,19 @@ jobs:
run: |
source venv/bin/activate
pytest -n auto
- name: Set up Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.2"
- name: Run make rewrite and check for unstaged changes
run: |
source venv/bin/activate
if ! make rewrite; then
echo "Error: 'make rewrite' command failed"
exit 1
fi
if [[ -n $(git status --porcelain) ]]; then
echo "Error: Unstaged changes detected after running 'make rewrite'"
git status
exit 1
fi

0 comments on commit 39c8d21

Please sign in to comment.