-
Notifications
You must be signed in to change notification settings - Fork 7
94 lines (90 loc) · 2.5 KB
/
ci.yml
File metadata and controls
94 lines (90 loc) · 2.5 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# The main integration pipeline
#
# It is responsible for verifying linting, type checking, and building packages
# in the entire monorepo.
name: CI & CD
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
permissions:
id-token: write
contents: read
jobs:
# The "check" job is responsible for verifying the minimum requirements to
# build all the packages in the monorepo.
check:
name: Verify build requirements
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
- uses: pnpm/action-setup@v2
with:
version: 10.28.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22.21.1
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
name: Install dependencies from pnpm lockfile
- run: pnpm lint-check
name: Run linting and formatting checks
- run: pnpm type-check
name: Run TypeScript type checker
build-dashboard:
name: dashboard
runs-on: ubuntu-24.04-arm
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-dashboard
with:
deploy: false
environment: prd
git-hash: ${{ github.sha }}
build-rpc:
name: rpc
runs-on: ubuntu-24.04-arm
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-rpc
with:
deploy: false
environment: prd
git-hash: ${{ github.sha }}
build-web:
name: web
runs-on: ubuntu-24.04-arm
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-web
with:
deploy: false
environment: prd
git-hash: ${{ github.sha }}