Skip to content

fix: bump git2 to latest to support sparse checkout #2

fix: bump git2 to latest to support sparse checkout

fix: bump git2 to latest to support sparse checkout #2

name: test-sparse-checkout
on:
pull_request:
workflow_dispatch:
jobs:
test-sparse-checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: moonrepo/setup-rust@v1
- uses: actions/checkout@v5
with:
path: sparse-checkout-dir
sparse-checkout: |
src
- name: Run command in sparse checkout directory
run: |
cd sparse-checkout-dir
cargo run --manifest-path ../Cargo.toml -- run --mode instrumentation -- echo foo