Skip to content

Commit 353e352

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

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/smoke-test.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Smoke Test Docker Image
2+
23
on:
34
pull_request:
45
push:
@@ -23,20 +24,24 @@ jobs:
2324
- name: Check out the source
2425
uses: actions/checkout@v3
2526

26-
- name: Expose GitHub Runtime
27-
uses: crazy-max/ghaction-github-runtime@v2
28-
2927
- name: Build Docker Image for TimescaleDB
3028
run: |
3129
if [ ${{ matrix.type }} == bitnami ]
3230
then
3331
cd bitnami
3432
fi
35-
make build-docker-cache image PG_VER=pg${{ matrix.pg }} TAG_VERSION=smoketest-image BETA=1
33+
make image PG_VER=pg${{ matrix.pg }} TAG_VERSION=smoketest-image BETA=1
3634
3735
- name: Install psql
3836
run: sudo apt install postgresql-client
3937

38+
- name: Set Max Connection Limit
39+
run: |
40+
export PGHOST=localhost
41+
export PGUSER=postgres
42+
export PGPASSWORD=test1234
43+
psql -h localhost -U postgres -c "ALTER SYSTEM SET max_connections = '100';"
44+
4045
- name: Run the smoke test
4146
run: |
4247
set -eu
@@ -74,21 +79,12 @@ jobs:
7479
psql -c "INSERT INTO test_geometry_table (geom) VALUES (ST_GeomFromText('POINT(0 0)', 4326));"
7580
psql -c "SELECT * FROM test_geometry_table;"
7681
77-
echo "Test zombodb Extension"
7882
psql -c "CREATE EXTENSION zombodb;"
79-
psql -c "SELECT zdb.internal_version();"
83+
psql -c "SELECT * FROM pg_extension WHERE extname = 'zombodb';"
8084
8185
echo "Test pg_repack Extension"
8286
psql -c "CREATE EXTENSION pg_repack;"
8387
psql -c "select repack.version(), repack.version_sql();"
84-
85-
echo "Test pgautofailover Extension"
86-
psql -c "CREATE EXTENSION pgautofailover CASCADE;"
87-
psql -c "SELECT pgautofailover.formation_settings();"
88-
89-
echo "Test HyperLogLog Extension"
90-
psql -c "CREATE EXTENSION hll;"
91-
psql -c "select hll_hash_text('hello world');"
9288
break
9389
fi
9490
sleep 1

0 commit comments

Comments
 (0)