Skip to content

Commit

Permalink
chore: limit changes detection migrations/schema.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Rose committed Oct 10, 2024
1 parent 4eecb87 commit fd816b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ jobs:
- name: verify schema.sql is committed
run: |
docker compose -f migrations/docker-compose.yaml up db dbmate --abort-on-container-exit
if ! git diff --ignore-space-at-eol --exit-code --quiet migrations/schema.sql; then
echo "Detected uncommitted changes after build. See status below:"
git diff
if ! git diff --exit-code --quiet migrations/schema.sql; then
echo "Detected changes in schema.sql:"
git diff migrations/schema.sql
exit 1
fi

0 comments on commit fd816b8

Please sign in to comment.