feat: strip web3 — remove Bags, sponsor, kora, MPP, hosting; keep 500… #246
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| # ── Rust: check + test ─────────────────────────────────────────────────── | |
| rust: | |
| name: Rust check + test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Checkout settlement repo (for [patch.crates-io]) | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: 0x01-a2a/settlement | |
| path: _settlement | |
| - name: Point patch.crates-io at local settlement | |
| run: sed -i 's|path = "../settlement/|path = "_settlement/|g' Cargo.toml | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Cache Cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry/index | |
| ~/.cargo/registry/cache | |
| ~/.cargo/git/db | |
| key: cargo-registry-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} | |
| restore-keys: cargo-registry-${{ runner.os }}- | |
| - name: cargo check (all workspace crates) | |
| run: cargo check --workspace | |
| env: | |
| CARGO_TERM_COLOR: always | |
| - name: cargo test (zerox1-protocol) | |
| run: cargo test -p zerox1-protocol | |
| env: | |
| CARGO_TERM_COLOR: always | |
| - name: cargo clippy | |
| run: cargo clippy --workspace -- -D warnings | |
| env: | |
| CARGO_TERM_COLOR: always | |
| # ── TypeScript: typecheck ──────────────────────────────────────────────── | |
| typescript: | |
| name: TypeScript typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Build @zerox1/core | |
| working-directory: packages/core | |
| run: npm ci && npm run build | |
| - name: Typecheck @zerox1/core | |
| working-directory: packages/core | |
| run: npx tsc --noEmit | |
| - name: Install @zerox1/client with local core | |
| working-directory: packages/client | |
| run: | | |
| node -e " | |
| const fs = require('fs'); | |
| const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); | |
| pkg.dependencies['@zerox1/core'] = 'file:../core'; | |
| fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2)); | |
| " | |
| npm install | |
| - name: Typecheck @zerox1/client | |
| working-directory: packages/client | |
| run: npx tsc --noEmit |