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 b3ee0ef commit 353e352
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Smoke Test Docker Image

on:
pull_request:
push:
Expand All @@ -23,20 +24,24 @@ 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 build-docker-cache image PG_VER=pg${{ matrix.pg }} TAG_VERSION=smoketest-image BETA=1
make image PG_VER=pg${{ matrix.pg }} TAG_VERSION=smoketest-image BETA=1
- name: Install psql
run: sudo apt install postgresql-client

- name: Set Max Connection Limit
run: |
export PGHOST=localhost
export PGUSER=postgres
export PGPASSWORD=test1234
psql -h localhost -U postgres -c "ALTER SYSTEM SET max_connections = '100';"
- name: Run the smoke test
run: |
set -eu
Expand Down Expand Up @@ -74,21 +79,12 @@ 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 zdb.internal_version();"
psql -c "SELECT * FROM pg_extension WHERE extname = 'zombodb';"
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 353e352

Please sign in to comment.