-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.37 KB
/
e2e-reusable.yml
File metadata and controls
55 lines (45 loc) · 1.37 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
47
48
49
50
51
52
53
54
55
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: e2e-reusable
on:
workflow_call:
inputs:
others:
type: boolean
default: false
dom-snapshot:
type: boolean
default: false
screen-snapshot:
type: boolean
default: false
jobs:
i:
timeout-minutes: 60
runs-on: macos-latest
env:
TZ: Asia/Seoul
steps:
- uses: actions/checkout@v4
- name: 🌱 Install pnpm
uses: ./.github/actions/pnpm-install
- name: 🥦 Install playwright
uses: ./.github/actions/playwright-install
- name: 🏗 Build and Export
uses: ./.github/actions/nextjs-build-export
with:
e2e: 'true'
- name: 🍄 Run Playwright [others]
if: inputs.others
run: pnpm e2e:others
- name: 🧊 Run Playwright [dom-snapshot]
if: inputs.dom-snapshot
run: pnpm e2e:dom
- name: 🩸 Run Playwright [screen-snapshot]
if: inputs.screen-snapshot
run: pnpm e2e:screen
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report-$${{ inputs.others && 'others' || inputs.dom-snapshot && 'dom-snapshot' || inputs.screen-snapshot && 'screen-snapshot' || 'no-input-name' }}
path: playwright-report/
retention-days: 10