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 ./...