From 83dfd0e944270026fe320e818a69c3c8bfca02d8 Mon Sep 17 00:00:00 2001 From: Atul Rajput <92659293+AtulRajput01@users.noreply.github.com> Date: Thu, 15 Jun 2023 23:57:02 +0530 Subject: [PATCH] Update smoke-test.yml --- .github/workflows/smoke-test.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 8d1de055..c2a41670 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -1,5 +1,4 @@ name: Smoke Test Docker Image - on: pull_request: push: @@ -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 @@ -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: | @@ -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