From c0f2116b9e7d1fac19c54a3cdff5e960cd04f12f Mon Sep 17 00:00:00 2001 From: daniel <40469266+daniel-burghardt@users.noreply.github.com> Date: Thu, 9 May 2024 15:59:20 -0300 Subject: [PATCH] test 12 --- .github/workflows/go.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 03b7dbf..eaa294c 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -64,8 +64,9 @@ jobs: postgres: image: postgres:16-alpine env: - POSTGRES_HOST_AUTH_METHOD: trust - POSTGRES_DB: wallet-backend + POSTGRES_USER: postgres + POSTGRES_DB: postgres + POSTGRES_PASSWORD: postgres PGHOST: localhost options: >- --health-cmd pg_isready @@ -77,7 +78,10 @@ jobs: env: PGHOST: localhost PGPORT: 5432 - DATABASE_URL: postgres://postgres@localhost:5432/wallet-backend?sslmode=disable + PGUSER: postgres + PGPASSWORD: postgres + PGDATABASE: postgres + DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable steps: - name: Checkout @@ -87,8 +91,6 @@ jobs: uses: actions/setup-go@v5 with: go-version: "1.22.1" - cache: true - cache-dependency-path: go.sum - name: Run Tests run: go test -v -race -cover ./...