forked from nuxt/examples
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.32 KB
/
playwright.yml
File metadata and controls
46 lines (40 loc) · 1.32 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
38
39
40
41
42
43
44
45
46
name: e2e
on:
workflow_dispatch:
inputs:
url:
required: false
description: The URL to run the test suite against. If omitted, it runs against all.
type: string
deployment_status:
jobs:
test:
if: >-
github.event_name == 'workflow_dispatch' ||
github.event.deployment_status.state == 'success'
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.58.2-noble
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- run: corepack enable
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: lts/*
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Install playwright
run: pnpm playwright install
working-directory: .e2e
- name: Run Playwright tests
run: pnpm --filter e2e test:all
env:
DEPLOY_URL: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }}
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
if: always()
with:
name: playwright-report
path: .e2e/playwright-report/
retention-days: 30