forked from QuorumProof/QuorumProof
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.04 KB
/
Copy pathmutation.yml
File metadata and controls
44 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Mutation Testing
on:
# Run on PRs to main to catch test quality regressions.
pull_request:
branches: [main]
paths:
- "contracts/**"
- "cargo-mutants.toml"
# Allow manual runs to get a baseline score.
workflow_dispatch:
jobs:
mutants:
name: cargo-mutants
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-mutants-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-mutants
run: cargo install cargo-mutants --locked
- name: Run mutation tests
run: ./scripts/mutation_test.sh
- name: Upload mutation results
if: always()
uses: actions/upload-artifact@v4
with:
name: mutation-results
path: mutants.out/
retention-days: 14