Skip to content

Commit 4fa0e0f

Browse files
committed
test: try on pg15 only
1 parent a694752 commit 4fa0e0f

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,17 @@ jobs:
150150
PGUSER: supabase_admin
151151
PGPASSWORD: ${{ env.POSTGRES_PASSWORD }}
152152

153-
# - name: Update Dockerfile.dbmate version
154-
# run: |
155-
# sed -i 's/%VERSION%/${{ env.PGMAJOR }}/g' migrations/Dockerfile.dbmate
156-
157-
# - name: verify schema.sql is committed
158-
# run: |
159-
# docker compose -f migrations/docker-compose.yaml up db dbmate --abort-on-container-exit
160-
# if ! git diff --exit-code --quiet migrations/schema.sql; then
161-
# echo "Detected changes in schema.sql:"
162-
# git diff
163-
# exit 1
164-
# fi
153+
- name: Update Dockerfile.dbmate version
154+
if: env.PGMAJOR == '15'
155+
run: |
156+
sed -i 's/%VERSION%/${{ env.PGMAJOR }}/g' migrations/Dockerfile.dbmate
157+
158+
- name: verify schema.sql is committed
159+
if: env.PGMAJOR == '15'
160+
run: |
161+
docker compose -f migrations/docker-compose.yaml up db dbmate --abort-on-container-exit
162+
if ! git diff --exit-code --quiet migrations/schema.sql; then
163+
echo "Detected changes in schema.sql:"
164+
git diff
165+
exit 1
166+
fi

0 commit comments

Comments
 (0)