ci(node): bump typescript from 5.9.3 to 6.0.3 #19
Workflow file for this run
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: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| rust: | |
| name: Rust (${{ matrix.os }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: cargo test | |
| run: cargo test --workspace --all-targets | |
| - name: cargo doc | |
| env: | |
| RUSTDOCFLAGS: -D warnings | |
| run: cargo doc --workspace --no-deps | |
| # cargo fmt and cargo clippy are intentionally not gated here yet — | |
| # see the cleanup follow-up. Add them back once the repo is clean. | |
| python: | |
| name: Python (${{ matrix.os }}, ${{ matrix.python }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: py-${{ matrix.os }}-${{ matrix.python }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Create virtualenv | |
| run: python -m venv .venv | |
| - name: Install build deps | |
| run: .venv/bin/pip install maturin pytest | |
| - name: Build and install wheel | |
| run: .venv/bin/maturin develop --release | |
| - name: pytest | |
| run: .venv/bin/pytest tests/python -v | |
| audit: | |
| name: Security audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: audit | |
| - name: cargo install cargo-audit | |
| run: cargo install --locked cargo-audit | |
| - name: cargo audit | |
| # Surfaces RustSec advisories in CI output. Not a hard gate yet — | |
| # transitive deps via reqwest/rustls carry advisories we haven't | |
| # triaged. Flip continue-on-error off once the dep tree is clean. | |
| run: cargo audit | |
| continue-on-error: true | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: npm audit (production) | |
| # package-lock.json is gitignored, so generate an ephemeral lockfile | |
| # for the audit (npm audit requires one). | |
| run: | | |
| npm install --package-lock-only | |
| npm audit --omit=dev | |
| node: | |
| name: Node.js (${{ matrix.os }}, Node ${{ matrix.node }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| node: ["20", "22", "24"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: node-${{ matrix.os }}-${{ matrix.node }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: npm install | |
| # package-lock.json is gitignored, so `npm ci` can't run; use install. | |
| run: npm install | |
| - name: napi build | |
| run: npm run build:debug | |
| - name: tsc typecheck (public .d.ts surface) | |
| run: npm run typecheck | |
| - name: npm test | |
| run: npm test |