-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (36 loc) · 1.05 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
35
36
37
38
39
40
41
42
name: Playwright
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
working-directory: packages/core
run: npm ci
- name: Build Tegel
working-directory: packages/core
run: npm run build
- name: Install Playwright Browsers
working-directory: packages/core
run: npx playwright install --with-deps
- name: Run Playwright tests
working-directory: packages/core
run: npx playwright test
- uses: daun/playwright-report-summary@v3
if: always()
with:
report-file: ./packages/core/results.json
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-output
path: ./packages/core/test-results/output ## Folder used in playwright.config.js `outputDir`
retention-days: 1