-
Notifications
You must be signed in to change notification settings - Fork 815
37 lines (34 loc) · 1.15 KB
/
playwright.yml
File metadata and controls
37 lines (34 loc) · 1.15 KB
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
name: "Playwright Tests"
on: [pull_request]
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
version: 10
- name: Install dependencies
run: pnpm install --frozen-lockfile --recursive
- name: Cache Playwright browser binaries
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright # Default Linux path
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright browsers and dependencies (on cache miss)
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm e2e:install
- name: Build library
run: pnpm prerelease
- name: Run Playwright tests
run: pnpm dev:integrations & pnpm e2e:test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: integrations/tests/test-results/
retention-days: 14