-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (48 loc) · 1.66 KB
/
example-e2e-tests.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
name: Example e2e tests
on: [push]
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install wasm-bindgen-cli
run: cargo install wasm-bindgen-cli
- name: install wasm-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
- uses: pnpm/action-setup@v2
with:
version: 8
- name: install dependencies
run: pnpm install
- name: Build opaque
run: pnpm build
- name: install Playwright browsers
run: npx playwright install --with-deps
- name: run client-simple-webpack tests
working-directory: examples/client-simple-webpack
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: examples/client-simple-webpack/playwright-report/
retention-days: 30
- name: run client-with-password-reset tests
working-directory: examples/client-with-password-reset
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: examples/client-with-password-reset/playwright-report/
retention-days: 30
- name: run fullstack-e2e-encrypted-locker-nextjs tests
working-directory: examples/fullstack-e2e-encrypted-locker-nextjs
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: examples/fullstack-e2e-encrypted-locker-nextjs/playwright-report/
retention-days: 30