Skip to content

Commit

Permalink
Try incremental mutants in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 12, 2023
1 parent 763873b commit 4c41681
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,33 @@ jobs:
- name: Test
run: cargo test --workspace

cargo-mutants:
incremental-mutants:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
- name: Relative diff
run: |
git diff --name-only ${{ env.GITHUB_BASE_REF }} | tee git.diff
- uses: dtolnay/rust-toolchain@master
with:
toolchain: beta
- uses: Swatinem/rust-cache@v2
- run: cargo install --path .
- name: Mutants
run: |
cargo mutants --no-shuffle --exclude console.rs -j 2 -vV --in-diff git.diff
- name: Archive mutants.out
uses: actions/upload-artifact@v3
if: always()
with:
name: mutants-incremental.out
path: mutants.out

cargo-mutants:
runs-on: ubuntu-latest
needs: [build, incremental-mutants]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
Expand Down

0 comments on commit 4c41681

Please sign in to comment.