fix: no-instrument flag didn't work and crashed #631
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: tests | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| login-tests: | |
| name: login-tests (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Configure git auth for private dependencies | |
| run: | | |
| token="${BT_GITHUB_TOKEN:-$GITHUB_TOKEN}" | |
| git config --global url."https://x-access-token:${token}@github.com/".insteadOf "https://github.com/" | |
| env: | |
| BT_GITHUB_TOKEN: ${{ secrets.BT_GITHUB_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # master | |
| with: | |
| toolchain: 1.92.0 | |
| - name: Run auth unit tests | |
| run: cargo test auth::tests -- --nocapture | |
| eval-tests-node: | |
| name: eval-tests-node (node ${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: ["20", "22"] | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| BT_EVAL_REQUIRED_RUNTIMES: node,bun,deno | |
| BT_EVAL_FIXTURE_RUNTIMES: node,bun,deno | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Configure git auth for private dependencies | |
| run: | | |
| token="${BT_GITHUB_TOKEN:-$GITHUB_TOKEN}" | |
| git config --global url."https://x-access-token:${token}@github.com/".insteadOf "https://github.com/" | |
| env: | |
| BT_GITHUB_TOKEN: ${{ secrets.BT_GITHUB_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # master | |
| with: | |
| toolchain: 1.92.0 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| - uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4 | |
| with: | |
| deno-version: v2.x | |
| - name: Enable pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@10.28.2 --activate | |
| - name: Install JS toolchain dependencies | |
| run: pnpm install --ignore-scripts | |
| - name: Run eval fixtures | |
| run: cargo test --test eval_fixtures | |
| - name: Run functions fixtures | |
| run: cargo test --test functions | |
| eval-tests-python: | |
| name: eval-tests-python (py ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| BT_EVAL_REQUIRED_RUNTIMES: python | |
| BT_EVAL_FIXTURE_RUNTIMES: python | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Configure git auth for private dependencies | |
| run: | | |
| token="${BT_GITHUB_TOKEN:-$GITHUB_TOKEN}" | |
| git config --global url."https://x-access-token:${token}@github.com/".insteadOf "https://github.com/" | |
| env: | |
| BT_GITHUB_TOKEN: ${{ secrets.BT_GITHUB_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # master | |
| with: | |
| toolchain: 1.92.0 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
| - name: Run eval fixtures | |
| run: cargo test --test eval_fixtures |