forked from tinacms/tinacms
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.48 KB
/
Copy pathe2e.yml
File metadata and controls
50 lines (47 loc) · 1.48 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
name: e2e Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
playwright:
name: 'Playwright E2E on Tests'
runs-on: ubuntu-latest
# Posts the Playwright report as a PR comment.
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Node.js environment
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: '.nvmrc'
- name: Install pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
id: pnpm-install
with:
package_json_file: package.json
run_install: false
- name: Install dependencies
run: pnpm install
- name: Build root package
run: pnpm build
- name: Install playwright
working-directory: playwright/tina-playwright
run: npx playwright install
- name: Run Playwright tests
working-directory: playwright/tina-playwright
run: npx playwright test
- name: Playwright report summary
uses: daun/playwright-report-summary@8bb85779022480a59ed8d33d9a4b8bda1c67666b # v4.0.0
if: always()
with:
job-summary: true
report-file: playwright/tina-playwright/playwright-test-results.json
comment-title: 'Playwright E2E Test Results'