diff --git a/.github/actions/local-app-run/action.yml b/.github/actions/local-app-run/action.yml index a6563531ef..aa903f4925 100644 --- a/.github/actions/local-app-run/action.yml +++ b/.github/actions/local-app-run/action.yml @@ -14,8 +14,7 @@ runs: # run: docker run --network=host -e "PGUSER=postgres" --workdir="/root/mocks_schema" ghcr.io/bcgov/cas-cif-schema:${{ github.sha }} sqitch deploy - name: start backend shell: bash - run: docker run -d --network=host -e "PGUSER=postgres" -e "GROWTHBOOK_API_KEY={{ secrets.GROWTHBOOK_API_KEY }}" -e "BYPASS_GROWTHBOOK=true" -e "PROGRAM_DIRECTOR_NAME=director name" -e "PROGRAM_DIRECTOR_EMAIL=director@email.com" -p 3004:3004 ghcr.io/bcgov/cas-reg-backend:${{ github.sha }} "/usr/bin/env" "bash" "-c" "ENABLE_MOCK_TIME='true' SHOW_KC_LOGIN='true' ENABLE_MOCK_AUTH='true' make run" - + run: docker run -d --network=host -p 127.0.0.1:8000:127.0.0.1:8000 ghcr.io/bcgov/cas-reg-backend:${{ github.sha }} "/usr/bin/env" "bash" "-c" "make run" - name: start frontend shell: bash run: docker run -d --network=host -p 3004:3004 ghcr.io/bcgov/cas-reg-frontend:${{ github.sha }} "/usr/bin/env" "bash" "-c" "yarn start" diff --git a/client/e2e/example.spec.ts b/client/e2e/example.spec.ts index 3eb79ead35..970a855197 100644 --- a/client/e2e/example.spec.ts +++ b/client/e2e/example.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from "@playwright/test"; test("backend is running", async ({ page }) => { - await page.goto("http://localhost:8000/api/docs"); + await page.goto("http://127.0.0.1:8000/api/docs"); await expect(page.getByText(/Ninja/i)).toBeVisible(); });