-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (81 loc) · 2.6 KB
/
playwright.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test-webui:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: LuisEnMarroquin/[email protected]
with:
SSHKEY: ${{ secrets.CC_GA }} # ----- BEGIN RSA PRIVATE KEY----- ...
- run: ssh -T [email protected] || true
- run: git submodule update --init --recursive
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: build packages
run: pnpm run -r build
- name: Install dependencies for builded packages
run: pnpm install
- name: Build contract
run: cd packages/webui && npm run build-contract
- name: Install Playwright Browsers
run: cd packages/webui && pnpm exec playwright install --with-deps
- name: Build fe
run: cd packages/webui && npm run build
- name: Run Playwright tests
run: cd packages/webui && pnpm exec playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: packages/webui/playwright-report/
retention-days: 30
test-landapp:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: LuisEnMarroquin/[email protected]
with:
SSHKEY: ${{ secrets.CC_GA }} # ----- BEGIN RSA PRIVATE KEY----- ...
- run: ssh -T [email protected] || true
- run: git submodule update --init --recursive
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: build packages
run: pnpm run -r build
- name: Install Playwright Browsers
run: cd packages/land_app && pnpm exec playwright install --with-deps
- name: Build fe
run: cd packages/land_app && npm run build
- name: Run Playwright tests
run: cd packages/land_app && pnpm exec playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: packages/land_app/playwright-report/
retention-days: 30