Skip to content

Commit 4c02ecf

Browse files
committed
ci: test with container
1 parent a5980c0 commit 4c02ecf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/frontend-e2e.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
needs: detect-changes
3131
if: needs.detect-changes.outputs.changed == 'true'
3232
runs-on: ubuntu-latest
33+
container:
34+
image: mcr.microsoft.com/playwright:v1.56.1-noble
3335

3436
steps:
3537
- name: Checkout code
@@ -76,15 +78,14 @@ jobs:
7678
- name: Install Playwright
7779
run: npx playwright install --with-deps chromium
7880

79-
- name: Start Xvfb
80-
run: |
81-
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
82-
echo "DISPLAY=:99" >> $GITHUB_ENV
83-
8481
- name: Run Playwright Tests
8582
working-directory: packages/frontend-main
86-
run: CI=1 DEBUG=pw:browser* pnpm test:e2e --headed
83+
run: |
84+
Xvfb :99 -screen 0 1280x720x24 &
85+
export DISPLAY=:99
86+
pnpm exec playwright test
8787
env:
88+
DEBUG: 'pw:browser*'
8889
DISPLAY: ':99'
8990

9091
- name: Upload playwright results

0 commit comments

Comments
 (0)