-
Notifications
You must be signed in to change notification settings - Fork 30
102 lines (83 loc) · 2.61 KB
/
Copy pathci.yml
File metadata and controls
102 lines (83 loc) · 2.61 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
95
96
97
98
99
100
101
102
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pull-request-checks:
name: Pull request checks
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 20
# Pull requests intentionally receive no repository secrets. These inert
# values keep build-time validation deterministic, including for forks.
env:
NEXT_PUBLIC_APP_URL: http://localhost:3000
MONGODB_URI: mongodb://localhost:27017/chainmove-ci
JWT_SECRET: ci-only-placeholder-not-used-in-production
ENABLE_MOCK_PAYMENTS: "true"
ENABLE_MOCK_EMAILS: "true"
ENABLE_MOCK_STELLAR: "true"
NEXT_TELEMETRY_DISABLED: "1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: TypeScript check
run: npm run typecheck
- name: Build
run: npm run build
main-branch-checks:
name: Main branch checks
if: github.event_name == 'push'
runs-on: ubuntu-latest
timeout-minutes: 20
# Secret-backed values are restricted to trusted main-branch runs. Private
# signing and deployment credentials are not needed by CI and stay omitted.
env:
NEXT_PUBLIC_APP_URL: ${{ secrets.NEXT_PUBLIC_APP_URL }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
NEXT_PUBLIC_PRIVY_APP_ID: ${{ secrets.NEXT_PUBLIC_PRIVY_APP_ID }}
PRIVY_APP_SECRET: ${{ secrets.PRIVY_APP_SECRET }}
PRIVY_JWKS_URL: ${{ secrets.PRIVY_JWKS_URL }}
PAYSTACK_PUBLIC_KEY: ${{ secrets.PAYSTACK_PUBLIC_KEY }}
PAYSTACK_SECRET_KEY: ${{ secrets.PAYSTACK_SECRET_KEY }}
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
ENABLE_MOCK_PAYMENTS: "true"
ENABLE_MOCK_EMAILS: "true"
ENABLE_MOCK_STELLAR: "true"
NEXT_TELEMETRY_DISABLED: "1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: TypeScript check
run: npm run typecheck
- name: Build
run: npm run build