Skip to content

Commit c64b8e4

Browse files
authored
Merge pull request #2763 from dunxen/2023-11-mutation-testing
Introduce mutation testing
2 parents 3ccf064 + c42699d commit c64b8e4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,19 @@ jobs:
247247
rustup component add rustfmt
248248
- name: Run rustfmt checks
249249
run: ci/rustfmt.sh
250+
251+
incremental-mutants:
252+
runs-on: ubuntu-latest
253+
steps:
254+
- uses: actions/checkout@v3
255+
with:
256+
fetch-depth: 0
257+
- name: Relative diff
258+
run: |
259+
git branch -av
260+
git diff origin/main.. | tee git.diff
261+
- uses: Swatinem/rust-cache@v2
262+
- name: Mutants
263+
run: |
264+
cargo install cargo-mutants
265+
cargo mutants --no-shuffle -j 2 -vV --in-diff git.diff

0 commit comments

Comments
 (0)