Skip to content

Commit

Permalink
Test if git is used without flagging
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jan 22, 2025
1 parent d6d0593 commit e952047
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,16 @@ jobs:
with:
tool: cargo-nextest

- name: "Disable git"
run: |
# Create a fake git that will be found first in PATH
mkdir -p /tmp/fake-bin
echo '#!/bin/bash
echo \'Error: `git` operations are not allowed — are you missing a cfg for the `git` feature?\' >&2
exit 1' > /tmp/fake-bin/git
chmod +x /tmp/fake-bin/git
echo "PATH=/tmp/fake-bin:$PATH" >> $GITHUB_ENV
- name: "Cargo test"
working-directory: ${{ env.UV_WORKSPACE }}
env:
Expand Down

0 comments on commit e952047

Please sign in to comment.