Skip to content

Commit 83dfd0e

Browse files
authored
Update smoke-test.yml
1 parent 353e352 commit 83dfd0e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/smoke-test.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Smoke Test Docker Image
2-
32
on:
43
pull_request:
54
push:
@@ -24,13 +23,16 @@ jobs:
2423
- name: Check out the source
2524
uses: actions/checkout@v3
2625

26+
- name: Expose GitHub Runtime
27+
uses: crazy-max/ghaction-github-runtime@v2
28+
2729
- name: Build Docker Image for TimescaleDB
2830
run: |
2931
if [ ${{ matrix.type }} == bitnami ]
3032
then
3133
cd bitnami
3234
fi
33-
make image PG_VER=pg${{ matrix.pg }} TAG_VERSION=smoketest-image BETA=1
35+
make build-docker-cache image PG_VER=pg${{ matrix.pg }} TAG_VERSION=smoketest-image BETA=1
3436
3537
- name: Install psql
3638
run: sudo apt install postgresql-client
@@ -40,7 +42,7 @@ jobs:
4042
export PGHOST=localhost
4143
export PGUSER=postgres
4244
export PGPASSWORD=test1234
43-
psql -h localhost -U postgres -c "ALTER SYSTEM SET max_connections = '100';"
45+
psql -h $PGHOST -U $PGUSER -c "ALTER SYSTEM SET max_connections = '100';"
4446
4547
- name: Run the smoke test
4648
run: |
@@ -79,12 +81,21 @@ jobs:
7981
psql -c "INSERT INTO test_geometry_table (geom) VALUES (ST_GeomFromText('POINT(0 0)', 4326));"
8082
psql -c "SELECT * FROM test_geometry_table;"
8183
84+
echo "Test zombodb Extension"
8285
psql -c "CREATE EXTENSION zombodb;"
83-
psql -c "SELECT * FROM pg_extension WHERE extname = 'zombodb';"
86+
psql -c "SELECT zdb.internal_version();"
8487
8588
echo "Test pg_repack Extension"
8689
psql -c "CREATE EXTENSION pg_repack;"
8790
psql -c "select repack.version(), repack.version_sql();"
91+
92+
echo "Test pgautofailover Extension"
93+
psql -c "CREATE EXTENSION pgautofailover CASCADE;"
94+
psql -c "SELECT pgautofailover.formation_settings();"
95+
96+
echo "Test HyperLogLog Extension"
97+
psql -c "CREATE EXTENSION hll;"
98+
psql -c "select hll_hash_text('hello world');"
8899
break
89100
fi
90101
sleep 1

0 commit comments

Comments
 (0)