Skip to content

Commit

Permalink
chore: debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Sep 18, 2023
1 parent d0f4cf5 commit d0fe720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/actions/local-app-run/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]" -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"
2 changes: 1 addition & 1 deletion client/e2e/example.spec.ts
Original file line number Diff line number Diff line change
@@ -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();
});
Expand Down

0 comments on commit d0fe720

Please sign in to comment.