Skip to content

Commit

Permalink
Update smoke-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AtulRajput01 authored Jun 15, 2023
1 parent 353e352 commit 83dfd0e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Smoke Test Docker Image

on:
pull_request:
push:
Expand All @@ -24,13 +23,16 @@ jobs:
- name: Check out the source
uses: actions/checkout@v3

- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v2

- name: Build Docker Image for TimescaleDB
run: |
if [ ${{ matrix.type }} == bitnami ]
then
cd bitnami
fi
make image PG_VER=pg${{ matrix.pg }} TAG_VERSION=smoketest-image BETA=1
make build-docker-cache image PG_VER=pg${{ matrix.pg }} TAG_VERSION=smoketest-image BETA=1
- name: Install psql
run: sudo apt install postgresql-client
Expand All @@ -40,7 +42,7 @@ jobs:
export PGHOST=localhost
export PGUSER=postgres
export PGPASSWORD=test1234
psql -h localhost -U postgres -c "ALTER SYSTEM SET max_connections = '100';"
psql -h $PGHOST -U $PGUSER -c "ALTER SYSTEM SET max_connections = '100';"
- name: Run the smoke test
run: |
Expand Down Expand Up @@ -79,12 +81,21 @@ jobs:
psql -c "INSERT INTO test_geometry_table (geom) VALUES (ST_GeomFromText('POINT(0 0)', 4326));"
psql -c "SELECT * FROM test_geometry_table;"
echo "Test zombodb Extension"
psql -c "CREATE EXTENSION zombodb;"
psql -c "SELECT * FROM pg_extension WHERE extname = 'zombodb';"
psql -c "SELECT zdb.internal_version();"
echo "Test pg_repack Extension"
psql -c "CREATE EXTENSION pg_repack;"
psql -c "select repack.version(), repack.version_sql();"
echo "Test pgautofailover Extension"
psql -c "CREATE EXTENSION pgautofailover CASCADE;"
psql -c "SELECT pgautofailover.formation_settings();"
echo "Test HyperLogLog Extension"
psql -c "CREATE EXTENSION hll;"
psql -c "select hll_hash_text('hello world');"
break
fi
sleep 1
Expand Down

0 comments on commit 83dfd0e

Please sign in to comment.