build(deps): bump docker/setup-buildx-action from 3.7.1 to 3.8.0 #2575
This file contains 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: Find mutants | |
on: | |
push: | |
branches: ["main"] | |
paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"] | |
pull_request: | |
branches: ["main"] | |
paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
mutants: | |
if: github.event_name == 'pull_request' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- id: nss-version | |
run: echo "minimum=$(cat neqo-crypto/min_version.txt)" >> "$GITHUB_OUTPUT" | |
- uses: ./.github/actions/nss | |
with: | |
minimum-version: ${{ steps.nss-version.outputs.minimum }} | |
- uses: ./.github/actions/rust | |
with: | |
tools: cargo-mutants | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Find incremental mutants | |
if: github.event_name == 'pull_request' | |
run: | | |
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" | |
- 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" | |
- name: Post step summary | |
run: | | |
{ | |
echo "### $TITLE" | |
echo "See https://mutants.rs/using-results.html for more information." | |
echo '```' | |
sed 's/\x1b\[[0-9;]*[mGKHF]//g' results.txt || true | |
echo '```' | |
} > "$GITHUB_STEP_SUMMARY" | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: mutants.out | |
path: mutants.out |