-
Notifications
You must be signed in to change notification settings - Fork 0
114 lines (93 loc) · 2.63 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: QA
on:
pull_request:
branches:
- main
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
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
knip:
name: Unused Files, Deps, Exports
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install
uses: ./.github/common-actions/install
- name: Run knip
run: pnpm files: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@248bde77443c376edc45906ede03a1aba9da0462 # [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@0b7f8abb1508181956e8e162db84b466c27e18ce # pin@v2
if: always()
with:
name: e2e-artifacts
path: |
apps/e2e/tests/e2e/videos
apps/e2e/tests/e2e/screenshots
continue-on-error: true