forked from MergeFi/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.05 KB
/
Copy pathci.yml
File metadata and controls
35 lines (31 loc) · 1.05 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-lint:
runs-on: ubuntu-latest
# next.config.ts validates NEXT_PUBLIC_STELLAR_NETWORK on every Next.js
# command (build, dev, start) — not just `build` — so `verify:headers`'s
# own `next start` needs this too, not only the `build` step. Set once
# at the job level rather than repeating it per-step, so a future step
# that also invokes `next` doesn't quietly reintroduce this gap.
# verify:env intentionally strips this back out before each of its own
# test builds (see scripts/verify-env-validation.mjs), so it isn't
# affected by the default set here.
env:
NEXT_PUBLIC_STELLAR_NETWORK: TESTNET
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run verify:env
- run: npm run build
- run: npm run verify:headers
- run: npm audit --audit-level=high