Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/chaos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Generate Prisma client
run: npx prisma generate

- name: Verify Docker is available
run: docker info

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
cache: npm
- run: npm ci || npm install
- run: npx prisma generate
- run: docker compose -f docker-compose.test.yml up -d --build
- run: docker compose -f docker-compose.test.yml up -d --build --wait
- run: npm run test:integration
env:
DATABASE_URL: postgresql://wraith:wraith@localhost:55432/wraith_test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
cache: npm
- run: npm ci || npm install
- run: npx prisma generate
- run: npx typedoc
- run: npm run docs
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ cp .env.example .env

**Testnet setup** (quick start):

```env
```bash
DATABASE_URL="postgresql://wraith:wraith@localhost:5432/wraith"
STELLAR_NETWORK="testnet"
# SOROBAN_RPC_URL is optional on testnet — the default public endpoint is used automatically
Expand All @@ -81,7 +81,7 @@ PORT=3000

**Mainnet setup** (production):

```env
```bash
DATABASE_URL="postgresql://wraith:wraith@localhost:5432/wraith"
STELLAR_NETWORK="mainnet"
# Required on mainnet — no free public Soroban RPC exists
Expand Down
4 changes: 3 additions & 1 deletion jest.chaos.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/** @type {import('jest').Config} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>/tests/chaos"],
testMatch: ["**/*.test.ts"],
moduleFileExtensions: ["ts", "js", "json"],
transform: {
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.test.json" }],
},
clearMocks: true,
testTimeout: 300_000, // 5 minutes — Docker build + full chaos scenario
};
2 changes: 1 addition & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ paths:
content:
application/json:
schema:
type: object
type: object
required: [ok, uptime]
properties:
ok:
Expand Down
Loading
Loading