From bad6b36c47446de1e2c878481669ea98a6dc95a0 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sun, 28 May 2023 01:51:55 +0200 Subject: [PATCH] CI Windows: Initialize test database --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c5b646e..4d6c1ca3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -146,6 +146,14 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v3 + - name: Initialize test database + run: | + psql -f testsetup/postgresql_setup.sql pgx_test + + env: + PGSERVICE: ${{ steps.postgres.outputs.service-name }} + shell: bash + - name: Test run: go test -v -race -timeout 5m ./... env: