From 2286bf4574ce8486395833fa3b9bb77a3f9b7dbe Mon Sep 17 00:00:00 2001 From: Blottiere Paul Date: Mon, 28 Feb 2022 17:34:10 +0100 Subject: [PATCH] Add dump/restore tests --- .github/scripts/test_dump_restore.sh | 6 ++++++ .github/workflows/focal_postgres14_postgis32.yml | 2 ++ 2 files changed, 8 insertions(+) create mode 100755 .github/scripts/test_dump_restore.sh diff --git a/.github/scripts/test_dump_restore.sh b/.github/scripts/test_dump_restore.sh new file mode 100755 index 0000000..ba970aa --- /dev/null +++ b/.github/scripts/test_dump_restore.sh @@ -0,0 +1,6 @@ +#! /bin/bash + +pg_dump contrib_regression -Fp > dump.sql +cat dump.sql +createdb test_restore +psql test_restore < dump.sql diff --git a/.github/workflows/focal_postgres14_postgis32.yml b/.github/workflows/focal_postgres14_postgis32.yml index cec9e03..b4c242a 100644 --- a/.github/workflows/focal_postgres14_postgis32.yml +++ b/.github/workflows/focal_postgres14_postgis32.yml @@ -23,3 +23,5 @@ jobs: - name: Error if: ${{ failure() }} run: cat pgsql/regression.diffs + - name: Dump and restore tests + run: .github/scripts/test_dump_restore.sh