From ee4725b7834c6a5f0789b13c20d8a855c7f59bef Mon Sep 17 00:00:00 2001 From: Han Date: Mon, 25 Mar 2024 20:26:32 +0000 Subject: [PATCH] . --- .github/workflows/test-new.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-new.yml b/.github/workflows/test-new.yml index c5a6c5dc..73a10896 100644 --- a/.github/workflows/test-new.yml +++ b/.github/workflows/test-new.yml @@ -40,15 +40,15 @@ jobs: RAILS_ENV: test GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} OFSTED_FEED_API_ENDPOINT: https://test-ofsted-feed.stub # this is not a real url, we just need an env variable set for the stub to work in tests - DATABASE_URL: postgresql://outpost:password@host.docker.internal:5432/outpost_test - DB_URI: mongodb://root:password@host.docker.internal:27017/outpost_development?authSource=admin + DATABASE_URL: postgresql://outpost:password@postgres:5432/outpost_test + DB_URI: mongodb://root:password@mongo:27017/outpost_development?authSource=admin run: | docker run \ -e RAILS_ENV=test \ -e GOOGLE_API_KEY="${{ secrets.GOOGLE_API_KEY }}" \ -e OFSTED_FEED_API_ENDPOINT="https://test-ofsted-feed.stub" \ - -e DATABASE_URL="postgresql://outpost:password@host.docker.internal:5432/outpost_test" \ - -e DB_URI="mongodb://root:password@host.docker.internal:27017/outpost_development?authSource=admin" \ + -e DATABASE_URL="postgresql://outpost:password@postgres:5432/outpost_test" \ + -e DB_URI="mongodb://root:password@mongo:27017/outpost_development?authSource=admin" \ -v ${{ github.workspace }}:/app --workdir /app gliderlabs/herokuish:latest bash -c "/bin/herokuish buildpack test" - name: Upload report to Codecov