Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the PG sample schemas to the GH Actions #2068

Merged
merged 14 commits into from
Dec 13, 2024
35 changes: 32 additions & 3 deletions .github/workflows/pg-migtests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "PG 13: Migration Tests"
name: "PG 14: Migration Tests"

on:
push:
Expand All @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:13
image: postgres:14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not update this PG version for this case, can we move these cases to misc-migtests.yml ?

env:
POSTGRES_PASSWORD: secret
# Set health checks to wait until postgres has started
Expand Down Expand Up @@ -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-14-postgis postgresql-14-postgis-3"
docker restart ${{ job.services.postgres.id }}
sleep 10

Expand Down Expand Up @@ -106,6 +107,34 @@ 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 (omnibus)"
if: ${{ !cancelled() && matrix.test_group == 'offline' }}
run: migtests/scripts/run-schema-migration.sh pg/omnibus

- 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 (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 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 (adventureworks)"
if: ${{ !cancelled() && matrix.test_group == 'offline' }}
run: migtests/scripts/run-schema-migration.sh pg/adventureworks

- name: "TEST: PG sample schemas (osm)"
if: ${{ !cancelled() && matrix.test_group == 'offline' }}
run: migtests/scripts/run-schema-migration.sh pg/osm

- 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
Expand Down