-
-
Notifications
You must be signed in to change notification settings - Fork 46
57 lines (57 loc) · 1.7 KB
/
playwright-e2e.yml
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
56
57
name: Playwright E2E Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm ci
- name: Lerna initialize
run: npm run initialize
- name: Lerna build
run: npm run build:clean
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Install Ory CLI
run: make .bin/ory
- name: Run examples/react-spa tests
run: cd examples/react-spa && npm run test
- uses: actions/upload-artifact@v2
if: always()
with:
name: react-spa playwright-report
path: |
examples/react-spa/playwright-report/
examples/react-spa/test-results/
retention-days: 7
- name: Run examples/preact-spa tests
run: cd examples/preact-spa && npm run test
- uses: actions/upload-artifact@v2
if: always()
with:
name: preact-spa playwright-report
path: |
examples/preact-spa/playwright-report/
examples/preact-spa/test-results/
retention-days: 7
- name: Run examples/nextjs-spa tests
run: cd examples/nextjs-spa && npm run test
- uses: actions/upload-artifact@v2
if: always()
with:
name: nextjs-spa playwright-report
path: |
examples/nextjs-spa/playwright-report/
examples/nextjs-spa/test-results/
retention-days: 7