Skip to content

Merge pull request #652 from jxsonyx/feat/soln #218

Merge pull request #652 from jxsonyx/feat/soln

Merge pull request #652 from jxsonyx/feat/soln #218

Workflow file for this run

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: 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