-
Notifications
You must be signed in to change notification settings - Fork 10
98 lines (81 loc) · 2.28 KB
/
QA.yaml
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
87
88
89
90
91
92
93
94
95
96
97
98
name: QA
on:
pull_request:
branches:
- main
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
if: false
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install
uses: ./.github/common-actions/install
- name: Run tests
run: pnpm test
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install
uses: ./.github/common-actions/install
- name: Run ESLint
run: pnpm lint
types:
name: TypeScript
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install
uses: ./.github/common-actions/install
- name: Run typecheck
run: pnpm typecheck
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install
uses: ./.github/common-actions/install
- name: Run prettier
run: pnpm format:check
e2e:
name: E2E
runs-on: ubuntu-latest
if: false
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install
uses: ./.github/common-actions/install
- name: Run Cypress tests
uses: cypress-io/github-action@1b70233146622b69e789ccdd4f9452adc638d25a # [email protected]
with:
start: pnpm start:bridge --host
command: pnpm test:e2e:ci # TODO: consider running in --headless
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
browser: chrome
spec: tests/e2e/specs/*
env:
SECRET_WORDS: 'test test test test test test test test test test test junk'
NETWORK_NAME: bob
RPC_URL: 'https://l2-fluffy-bob-7mjgi9pmtg.t.conduit.xyz'
CHAIN_ID: 901
SYMBOL: ETH
BLOCK_EXPLORER: 'https://explorerl2-fluffy-bob-7mjgi9pmtg.t.conduit.xyz'
- name: Archive e2e artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # pin@v2
if: always()
with:
name: e2e-artifacts
path: |
apps/e2e/tests/e2e/videos
apps/e2e/tests/e2e/screenshots
continue-on-error: true