weavatrix-scan 0.5.3

Deterministic, safe repository scanner for code intelligence
Documentation
name: Node and Bun native bindings

on:
  push:
  pull_request:

permissions:
  contents: read

jobs:
  native:
    name: ${{ matrix.target }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - os: ubuntu-latest
            target: x86_64-unknown-linux-gnu
          - os: windows-latest
            target: x86_64-pc-windows-msvc
          - os: macos-latest
            target: aarch64-apple-darwin
    defaults:
      run:
        working-directory: node
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
      - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
        with:
          node-version: 24
          cache: npm
          cache-dependency-path: node/package-lock.json
      - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
        with:
          targets: ${{ matrix.target }}
          components: rustfmt
      - name: Install dependencies
        run: npm ci --ignore-scripts
      - name: Check Rust formatting
        run: cargo fmt --manifest-path Cargo.toml -- --check
      - name: Build native binding
        run: npm run build -- --target ${{ matrix.target }}
      - name: Test on Node 24
        run: npm test
      - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
        with:
          bun-version: 1.4.0
      - name: Test on Bun 1.4
        run: npm run test:bun
      - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
        with:
          node-version: 18
          package-manager-cache: false
      - name: Test Node-API 8 floor on Node 18
        run: npm test