Update github action test

This commit is contained in:
xbgmsharp
2023-07-10 19:06:52 +02:00
parent 40256a1c0e
commit 87d9380882

View File

@@ -29,6 +29,8 @@ jobs:
env:
# The hostname used to communicate with the PostgreSQL service container
PGHOST: localhost
PGPORT: 5432
PGDATABASE: signalk
PGUSER: username
PGPASSWORD: password
run: |
@@ -40,13 +42,10 @@ jobs:
docker-compose ps -a
echo ${PGSAIL_API_URL}
curl ${PGSAIL_API_URL}
if psql -c "select 1;"
then
echo "Test PostgreSQL"
psql -c "SELECT version();"
psql -c "SELECT value is not null FROM app_settings WHERE name = 'app.version';"
break
fi
psql -c "select 1"
echo "Test PostgreSQL"
psql -c "SELECT version();"
psql -c "SELECT value is not null FROM app_settings WHERE name = 'app.version';"
- name: Show the logs
if: always()
run: |