Update packages #8
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, master] | |
| pull_request: | |
| branches: [main, master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| rust/target | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: rust-${{ runner.os }}-${{ hashFiles('rust/**/Cargo.lock') }} | |
| restore-keys: rust-${{ runner.os }}- | |
| - name: Install wasm-pack | |
| run: cargo install wasm-pack --locked | |
| - name: Run Rust tests | |
| working-directory: rust | |
| run: cargo test | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build (Rust → WASM → TypeScript) | |
| run: pnpm run build:all | |
| - name: Run tests | |
| run: pnpm test | |
| - name: Type check | |
| run: pnpm typecheck | |
| - name: Lint | |
| run: pnpm lint |