Skip to content

Commit 52e267c

Browse files
committedMar 27, 2025
chore: run regress tests before migration tests
This is to get more valuable feedback earlier in case of failure
1 parent ea0e40f commit 52e267c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎flake.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -807,9 +807,6 @@
807807
exit 1
808808
fi
809809
810-
echo "Running migrations tests"
811-
pg_prove -p 5435 -U supabase_admin -h localhost -d postgres -v ${./migrations/tests}/test.sql
812-
813810
mkdir -p $out/regression_output
814811
if ! pg_regress \
815812
--use-existing \
@@ -825,6 +822,9 @@
825822
exit 1
826823
fi
827824
825+
echo "Running migrations tests"
826+
pg_prove -p 5435 -U supabase_admin -h localhost -d postgres -v ${./migrations/tests}/test.sql
827+
828828
# Copy logs to output
829829
for logfile in $(find /tmp -name postgresql.log -type f); do
830830
cp "$logfile" $out/postgresql.log

0 commit comments

Comments
 (0)
Please sign in to comment.