mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 03:07:47 +00:00
Update github action test
This commit is contained in:
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
@@ -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: |
|
||||||
|
Reference in New Issue
Block a user