-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
41 lines (34 loc) · 929 Bytes
/
Copy pathplaywright.yml
File metadata and controls
41 lines (34 loc) · 929 Bytes
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
name: "Playwright"
on:
workflow_dispatch:
pull_request:
paths:
- "src/**"
- "package.json"
- "bun.lock"
- "playwright.config.*"
- "tests/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
playwright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Install Playwright browsers
run: bunx playwright install chromium
- name: Run Playwright tests
run: bun run test:playwright
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v7
with:
name: playwright-report
path: playwright-report/
retention-days: 7