Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
feat: disable and re-enable exit on error for 'cargo mutants' command
Browse files Browse the repository at this point in the history
  • Loading branch information
ASuciuX committed Dec 8, 2023
1 parent e4f1447 commit 08f002a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/filter-pr-mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ jobs:

- name: Run mutants and check the exit code of the command, fail the workflow if mutations are not caught
run: |
set +e # Disable immediate exit on error
cargo mutants --no-shuffle -j 2 -vV --in-diff git.diff --output ./
exit_code=$?
set -e # Enable immediate exit on error again
case $exit_code in
0)
Expand Down

0 comments on commit 08f002a

Please sign in to comment.