build: add testing proxy to playwright CI

This PR switches the playwright test in CI to use the consoledot testing
proxy instead of the development one in fec. This should result in
faster and more stable tests.
This commit is contained in:
Dominik Vagner 2025-05-20 15:06:33 +02:00 committed by Klara Simickova
parent eac87e8c9b
commit 3d8ccdf23d
2 changed files with 9 additions and 3 deletions

View file

@ -31,7 +31,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache: "npm"
- name: Install front-end dependencies
run: npm ci
@ -48,8 +48,11 @@ jobs:
- name: Start front-end server
run: |
npm run start:stage &
npx wait-on https://localhost:1337
npm run start:federated &
npx wait-on http://localhost:8003/apps/image-builder/
- name: Run testing proxy
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
- name: Run front-end Playwright tests
env: