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: