From b3fb923cd13576e6bad1becd6c42c7886cc1a341 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 22 Jun 2020 16:19:11 +0100 Subject: [PATCH] Fix postgres testing Looks like github updated their default container, so now it contains postgres and postgres-client by default - we just need to manually launch the installed-but-disabled daemon --- .github/workflows/test_and_publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index ba67576f..72d22d49 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -32,7 +32,7 @@ jobs: run: | mkdir -p data/config if [[ "${{ matrix.database }}" == "pgsql" ]]; then - sudo apt update && sudo apt-get install -y postgresql postgresql-client ; + sudo systemctl start postgresql ; psql --version ; sudo -u postgres psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres ; sudo -u postgres psql -c "CREATE USER shimmie WITH PASSWORD 'shimmie';" -U postgres ;