Skip to content

Commit b8149d0

Browse files
committed
test: add vitest with supply + http unit tests, wire into CI
22 tests covering the FairCoin supply schedule (premine, halvings, hard cap, monotonicity) and the route validation helpers (parseNetwork, parseLimit, parseOffset, parseAddress, escapeRegex). The CI workflow runs them via bun and switches off the npm setup that didn't match the project's bun.lock.
1 parent 112d182 commit b8149d0

6 files changed

Lines changed: 282 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,26 @@ on:
88

99
jobs:
1010
build:
11-
name: Typecheck & Build
11+
name: Typecheck, Test & Build
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- uses: actions/setup-node@v4
16+
- uses: oven-sh/setup-bun@v2
1717
with:
18-
node-version: 22
19-
cache: npm
18+
bun-version: latest
2019

2120
- name: Install dependencies
22-
run: npm ci
21+
run: bun install --frozen-lockfile
2322

2423
- name: Typecheck (frontend + server)
25-
run: npm run typecheck
24+
run: bun run typecheck
25+
26+
- name: Test
27+
run: bun run test
2628

2729
- name: Build frontend
28-
run: npm run build
30+
run: bun run build
2931

3032
- name: Check i18n locale key parity
3133
run: |

0 commit comments

Comments
 (0)