Skip to content

Commit dabd94b

Browse files
committed
x
1 parent b03a94e commit dabd94b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/_test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ jobs:
5858
sudo apt-get install -y postgresql-client
5959
# Test psql connection
6060
psql -h localhost -p 5432 -U langchain -d langchain_test -c "SELECT 1;"
61+
62+
if [ $? -ne 0 ]; then
63+
echo "Postgres connection failed"
64+
exit 1
65+
else
66+
echo "Postgres connection successful"
67+
fi
6168
env:
6269
# postgress password is required; alternatively, you can run:
6370
# `PGPASSWORD=postgres_password psql ...`

0 commit comments

Comments
 (0)