Skip to content

Commit fd816b8

Browse files
committed
chore: limit changes detection migrations/schema.sql
1 parent 4eecb87 commit fd816b8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,8 @@ jobs:
156156
157157
- name: verify schema.sql is committed
158158
run: |
159-
docker compose -f migrations/docker-compose.yaml up db dbmate --abort-on-container-exit
160-
if ! git diff --ignore-space-at-eol --exit-code --quiet migrations/schema.sql; then
161-
echo "Detected uncommitted changes after build. See status below:"
162-
git diff
159+
if ! git diff --exit-code --quiet migrations/schema.sql; then
160+
echo "Detected changes in schema.sql:"
161+
git diff migrations/schema.sql
163162
exit 1
164163
fi

0 commit comments

Comments
 (0)