-
-
Notifications
You must be signed in to change notification settings - Fork 88
34 lines (33 loc) · 1.06 KB
/
playwright.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Playwright Tests
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@master
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Build
run: npm run build
- name: Run Playwright tests
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test:playwright
# if: matrix.os == 'ubuntu-latest'
# - run: npm run test
# if: matrix.os != 'ubuntu-latest'
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-output
path: test-output/
retention-days: 30