-
Notifications
You must be signed in to change notification settings - Fork 88
72 lines (59 loc) · 1.86 KB
/
Copy pathci.yml
File metadata and controls
72 lines (59 loc) · 1.86 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
name: CI
on:
push:
branches:
- main
- staging
pull_request:
branches:
- main
- staging
jobs:
test:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma client
run: pnpm prisma:generate
- name: Check Prisma migration naming
run: pnpm run prisma:check-migrations
- name: Build
run: pnpm run build
- name: Generate OpenAPI spec
run: pnpm run openapi:generate
env:
DATABASE_URL: postgresql://stub:stub@localhost:5432/stub
WALLET_ENCRYPTION_KEY: ${{ secrets.WALLET_ENCRYPTION_KEY || '0000000000000000000000000000000000000000000000000000000000000000' }}
STELLAR_HORIZON_URL: https://horizon-testnet.stellar.org
STELLAR_NETWORK: TESTNET
STELLAR_HORIZON_TESTNET_URL: https://horizon-testnet.stellar.org
STELLAR_HORIZON_MAINNET_URL: https://horizon.stellar.org
STELLAR_HORIZON_MAX_RETRIES: 3
STELLAR_HORIZON_RETRY_BACKOFF_MS: 500
STELLAR_HORIZON_RETRY_JITTER_MS: 250
BALANCE_STALE_THRESHOLD_MS: 300000
WEBHOOK_MAX_RETRIES: 5
WEBHOOK_RETRY_BACKOFF_MS: 1000
WEBHOOK_TIMEOUT_MS: 10000
WEBHOOK_MAX_CONSECUTIVE_FAILURES: 10
AUTH_RATE_LIMIT_MAX: 10
AUTH_RATE_LIMIT_WINDOW_MS: 60000
- name: Lint OpenAPI spec
run: pnpm run openapi:lint
- name: Test
run: pnpm test
- name: Test scripts
run: pnpm run test:scripts