diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 7b57dd8..50bd5ff 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -35,6 +35,27 @@ jobs: - go-mod-cache:/go/pkg/mod - go-build-cache:/root/.cache/go-build - gobin-cache:/go/bin + + # The same database ci.yaml's test job gets, for the same reason: `make test` needs a + # real Postgres and fails without TERDUT_TEST_DSN rather than skipping. This job is + # the gate every publishing job below hangs off, so it has to be able to run the + # suite -- v0.11.0 was tagged with the service here missing and published nothing. + services: + postgres: + image: postgres:17-alpine + env: + POSTGRES_USER: terdut + POSTGRES_PASSWORD: terdut + POSTGRES_DB: terdut_test + options: >- + --health-cmd "pg_isready -U terdut -d terdut_test" + --health-interval 5s + --health-timeout 5s + --health-retries 12 + + env: + TERDUT_TEST_DSN: postgres://terdut:terdut@postgres:5432/terdut_test?sslmode=disable + steps: - name: Checkout env: