-
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@496e7dc0edc421a9de8a36a31c793340e00c61bf # [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@50769540e7f4bd5e21e526ee35c689e35e0d6874 # pin@v2
if: always()
with:
name: e2e-artifacts
path: |
apps/e2e/tests/e2e/videos
apps/e2e/tests/e2e/screenshots
continue-on-error: true