From a22b8745c2d7e2d12adee483278c9b3690da9d38 Mon Sep 17 00:00:00 2001 From: Han Date: Mon, 25 Mar 2024 21:15:43 +0000 Subject: [PATCH] . --- .github/workflows/test-new.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-new.yml b/.github/workflows/test-new.yml index 71346ba6..be280515 100644 --- a/.github/workflows/test-new.yml +++ b/.github/workflows/test-new.yml @@ -30,6 +30,10 @@ jobs: MONGO_INITDB_ROOT_PASSWORD: password ports: - 27017:27017 + herokuish: + image: gliderlabs/herokuish:latest + options: >- + --mount type=bind,source=${{ github.workspace }},target=/app steps: - name: Checkout repository @@ -43,13 +47,13 @@ jobs: DATABASE_URL: postgresql://outpost:password@localhost:5432/outpost_test DB_URI: mongodb://root:password@localhost:27017/outpost_development?authSource=admin run: | - docker run \ + docker exec \ -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@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" + herokuish bash -c "/bin/herokuish buildpack test" - name: Upload report to Codecov uses: codecov/codecov-action@v2