Skip to content

Commit 21e8b06

Browse files
committed
chore: run regress tests before migration tests
This is to get more valuable feedback earlier in case of failure
1 parent fae1fdf commit 21e8b06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flake.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,6 @@
845845
exit 1
846846
fi
847847
848-
echo "Running migrations tests"
849-
pg_prove -p 5435 -U supabase_admin -h localhost -d postgres -v ${./migrations/tests}/test.sql
850-
851848
mkdir -p $out/regression_output
852849
if ! pg_regress \
853850
--use-existing \
@@ -863,6 +860,9 @@
863860
exit 1
864861
fi
865862
863+
echo "Running migrations tests"
864+
pg_prove -p 5435 -U supabase_admin -h localhost -d postgres -v ${./migrations/tests}/test.sql
865+
866866
# Copy logs to output
867867
for logfile in $(find /tmp -name postgresql.log -type f); do
868868
cp "$logfile" $out/postgresql.log

0 commit comments

Comments
 (0)