-
Notifications
You must be signed in to change notification settings - Fork 47
71 lines (61 loc) · 1.96 KB
/
Copy pathci.yml
File metadata and controls
71 lines (61 loc) · 1.96 KB
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
name: Frontend CI
on:
push:
branches: [main, "release/*"]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
NEXT_TELEMETRY_DISABLED: "1"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
jobs:
quality:
name: ${{ matrix.check.name }}
runs-on: ubuntu-latest
timeout-minutes: ${{ matrix.check.timeout }}
strategy:
fail-fast: false
matrix:
check:
- name: Lint
command: pnpm lint
timeout: 10
- name: Typecheck
command: pnpm typecheck
timeout: 10
- name: Build
command: pnpm build
timeout: 15
- name: Unit tests (core queues)
command: pnpm test:unit && pnpm test:queue && pnpm test:optimistic && pnpm test:sliding-window
timeout: 10
- name: Unit tests (storage and sync)
command: pnpm test:cache && pnpm test:idb && pnpm test:shared-state && pnpm test:workspace && pnpm test:network-cache
timeout: 10
- name: Unit tests (services)
command: pnpm test:waterfall && pnpm test:horizon-pagination && pnpm test:redis-cache && pnpm test:approval-manager
timeout: 10
- name: Unit tests (features)
command: pnpm test:backup && pnpm test:backup-scheduler && pnpm test:scheduler && pnpm test:bridge && pnpm test:staking
timeout: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.25.0
run_install: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ${{ matrix.check.name }}
run: ${{ matrix.check.command }}