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