Skip to content

Commit 657e5cd

Browse files
committed
Try cargo-mutants in CI
1 parent ca9cc16 commit 657e5cd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/mutants.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: cargo-mutants
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
mutation:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions-rs/toolchain@v1
11+
- name: Install cargo-mutants
12+
run: cargo install cargo-mutants
13+
- name: Run mutant tests
14+
run: cargo mutants -- --all-features
15+
- name: Archive results
16+
uses: actions/upload-artifact@v3
17+
if: failure()
18+
with:
19+
name: mutation-report
20+
path: mutants.out

0 commit comments

Comments
 (0)