diff --git a/.github/workflows/misc-migtests.yml b/.github/workflows/misc-migtests.yml index c56e4a00d..93dc69c4d 100644 --- a/.github/workflows/misc-migtests.yml +++ b/.github/workflows/misc-migtests.yml @@ -12,7 +12,7 @@ jobs: services: postgres: - image: postgres:13 + image: postgres:14 env: POSTGRES_PASSWORD: secret # Set health checks to wait until postgres has started @@ -108,6 +108,9 @@ jobs: echo "127.0.0.1 yb-master-n1" | sudo tee -a /etc/hosts psql "postgresql://yugabyte@yb-tserver-n1:5433/yugabyte" -c "SELECT version();" + echo "TEST: PG sample schemas (omnibus)" + migtests/scripts/run-schema-migration.sh pg/omnibus + echo "Setup the gcp credentials" migtests/scripts/gcs/create_gcs_credentials_file diff --git a/.github/workflows/pg-migtests.yml b/.github/workflows/pg-migtests.yml index cb2457f12..4a1c1d262 100644 --- a/.github/workflows/pg-migtests.yml +++ b/.github/workflows/pg-migtests.yml @@ -52,9 +52,10 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - - name: "Enable postgres with wal_level as logical" + - name: "Enable postgres with wal_level as logical and install postgis" run: | docker exec ${{ job.services.postgres.id }} sh -c "echo 'wal_level=logical' >> /var/lib/postgresql/data/postgresql.conf" + docker exec ${{ job.services.postgres.id }} sh -c "apt-get update && apt-get install -y postgresql-13-postgis postgresql-13-postgis-3" docker restart ${{ job.services.postgres.id }} sleep 10 @@ -106,6 +107,30 @@ jobs: echo "127.0.0.1 yb-master-n1" | sudo tee -a /etc/hosts psql "postgresql://yugabyte@yb-tserver-n1:5433/yugabyte" -c "SELECT version();" + - name: "TEST: PG sample schemas (sakila)" + if: ${{ !cancelled() && matrix.test_group == 'offline' }} + run: migtests/scripts/run-schema-migration.sh pg/sakila + + - name: "TEST: PG sample schemas (osm)" + if: ${{ !cancelled() && matrix.test_group == 'offline' }} + run: migtests/scripts/run-schema-migration.sh pg/osm + + - name: "TEST: PG sample schemas (adventureworks)" + if: ${{ !cancelled() && matrix.test_group == 'offline' }} + run: migtests/scripts/run-schema-migration.sh pg/adventureworks + + - name: "TEST: PG sample schemas (sample-is)" + if: ${{ !cancelled() && matrix.test_group == 'offline' }} + run: migtests/scripts/run-schema-migration.sh pg/sample-is + + - name: "TEST: PG sample schemas (pgtbrus)" + if: ${{ !cancelled() && matrix.test_group == 'offline' }} + run: migtests/scripts/run-schema-migration.sh pg/pgtbrus\ + + - name: "TEST: PG sample schemas (stackexchange)" + if: ${{ !cancelled() && matrix.test_group == 'offline' }} + run: migtests/scripts/run-schema-migration.sh pg/stackexchange + - name: "TEST: pg-table-list-flags-test (table-list and exclude-table-list)" if: ${{ !cancelled() && matrix.test_group == 'offline' }} run: migtests/scripts/run-test.sh pg/table-list-flags-tests