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