Skip to content

fix(wallet): authenticate wallet data and remove simulated production balances #25

fix(wallet): authenticate wallet data and remove simulated production balances

fix(wallet): authenticate wallet data and remove simulated production balances #25

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: agentverse
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d agentverse"
--health-interval 5s
--health-timeout 5s
--health-retries 5
env:
DB_HOST: 127.0.0.1
DB_PORT: 5432
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_NAME: agentverse
DB_SYNCHRONIZE: true
DB_LOGGING: false
JWT_SECRET: ci-secret
STELLAR_NETWORK: testnet
STELLAR_RPC_URL: https://soroban-testnet.stellar.org
STELLAR_NETWORK_PASSPHRASE: Test SDF Network ; September 2015
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: Test
run: npm test
# The jest config in package.json sets rootDir to "src", so `npm test`
# never picks up anything under test/. Without this step the wallet
# authorization and payment fail-closed integration tests would not run
# in CI at all.
- name: E2E test
run: npm run test:e2e
- name: Build
run: npm run build
# Lint runs last, and still fails the job. It used to run first, and
# because `npm run lint` currently exits non-zero on a clean checkout of
# main, every run stopped here with Test and Build reported as skipped.
# Moving it does not weaken the gate; it means the test and build results
# are visible even while the pre-existing lint debt is outstanding.
- name: Lint
run: npm run lint