Skip to content

Commit 6ffa993

Browse files
committed
CI(test): add testing proxy to playwright CI
Playwright ToTok Demo
1 parent efed39d commit 6ffa993

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/playwright.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/setup-node@v4
3232
with:
3333
node-version: 20
34-
cache: 'npm'
34+
cache: "npm"
3535

3636
- name: Install front-end dependencies
3737
run: npm ci
@@ -48,8 +48,11 @@ jobs:
4848

4949
- name: Start front-end server
5050
run: |
51-
npm run start:stage &
52-
npx wait-on https://localhost:1337
51+
npm run start:federated &
52+
npx wait-on http://localhost:8003/apps/image-builder/
53+
54+
- name: Run testing proxy
55+
run: docker run -d --network=host -e HTTPS_PROXY=$RH_PROXY_URL -v "$(pwd)/config:/config:ro,Z" --name consoledot-testing-proxy quay.io/dvagner/consoledot-testing-proxy
5356

5457
- name: Run front-end Playwright tests
5558
env:

config/routes.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"/apps/image-builder*": { "url": "http://127.0.0.1:8003" }
3+
}

0 commit comments

Comments
 (0)