From ec668585b506b4b3aea751f48446c326393b0122 Mon Sep 17 00:00:00 2001 From: Han Date: Mon, 25 Mar 2024 21:08:53 +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 73a10896..71346ba6 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@postgres:5432/outpost_test - DB_URI: mongodb://root:password@mongo:27017/outpost_development?authSource=admin + DATABASE_URL: postgresql://outpost:password@localhost:5432/outpost_test + DB_URI: mongodb://root:password@localhost: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@postgres:5432/outpost_test" \ - -e DB_URI="mongodb://root:password@mongo:27017/outpost_development?authSource=admin" \ + -e DATABASE_URL="postgresql://outpost:password@localhost:5432/outpost_test" \ + -e DB_URI="mongodb://root:password@localhost: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