-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.03 KB
/
ci.yml
File metadata and controls
45 lines (36 loc) · 1.03 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
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
build:
name: lint + typecheck + build (turbo)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 10.33.0
run_install: false
- name: Setup Node 20
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'pnpm'
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Turbo lint
run: pnpm turbo lint --concurrency=4
- name: Turbo typecheck
run: pnpm turbo typecheck --concurrency=4
- name: Turbo build
run: pnpm turbo build --concurrency=4
env:
# Builds may need RPC URL for static generation; default to public mainnet RPC.
NEXT_PUBLIC_SENTRIX_RPC_URL: https://rpc.sentrixchain.com
NEXT_PUBLIC_SENTRIX_TESTNET_RPC_URL: https://testnet-rpc.sentrixchain.com