Skip to content

Commit

Permalink
Strip ANSI escapes from Markdown output
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 16, 2024
1 parent a68dd1c commit e551f60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: true

jobs:
incremental-mutants:
mutants:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -40,14 +40,14 @@ jobs:
git diff origin/${{ github.base_ref }}.. > pr.diff
set -o pipefail
cargo mutants --test-tool=nextest --no-shuffle -j 2 -vV --in-diff pr.diff | tee results.txt || true
echo 'TITLE="Incremental Mutants"' >> "$GITHUB_ENV"
echo 'TITLE=Incremental Mutants' >> "$GITHUB_ENV"
- name: Find mutants
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: |
set -o pipefail
cargo mutants --test-tool=nextest -vV --in-place | tee results.txt || true
echo 'TITLE="All Mutants"' >> "$GITHUB_ENV"
echo 'TITLE=All Mutants' >> "$GITHUB_ENV"
- name: Post step summary
if: always()
Expand All @@ -56,7 +56,7 @@ jobs:
echo "### $TITLE"
echo "See https://mutants.rs/using-results.html for more information."
echo '```'
cat results.txt
cat results.txt | sed 's/[^[:print:]]//g'
echo '```'
} > "$GITHUB_STEP_SUMMARY"
Expand Down

0 comments on commit e551f60

Please sign in to comment.