Skip to content
Merged
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
96 changes: 96 additions & 0 deletions .github/workflows/ts-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: TypeScript CI

on:
pull_request:
branches:
- develop
push:
branches:
- develop
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ts-ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
quality:
name: Quality / Node ${{ matrix.node }}
runs-on: ubuntu-24.04
timeout-minutes: 20

strategy:
fail-fast: false
matrix:
node:
- "22"
- "24"

defaults:
run:
working-directory: ts

steps:
- name: Checkout
uses: actions/checkout@v7

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
cache-dependency-path: ts/package-lock.json

- name: Install locked dependencies
run: npm ci

- name: Check architecture boundaries
run: npm run depcruise

- name: Type-check
run: npm run typecheck

- name: Run tests
run: npm test

- name: Build npm bundle
run: npm run build

- name: Validate npm package contents
run: npm pack --dry-run

standalone:
name: Standalone / Linux x64
needs: quality
runs-on: ubuntu-24.04
timeout-minutes: 15

defaults:
run:
working-directory: ts

steps:
- name: Checkout
uses: actions/checkout@v7

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
cache: npm
cache-dependency-path: ts/package-lock.json

- name: Install locked dependencies
run: npm ci

- name: Build standalone executable
run: >-
npm run build:standalone --
--target bun-linux-x64-baseline
--outfile standalone/wallet-cli

- name: Verify executable and Ledger addon
run: node scripts/verify-standalone.mjs standalone/wallet-cli