Skip to content

Commit 2418116

Browse files
authored
Merge pull request #234 from sourcefrog/incremental-mutants
Run cargo-mutants on the PR diff
2 parents 46c2b76 + 98d1f38 commit 2418116

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

.github/workflows/rust.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Rust
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
# see https://matklad.github.io/2021/09/04/fast-rust-builds.html
610
env:
@@ -80,3 +84,29 @@ jobs:
8084
with:
8185
name: mutation-report
8286
path: mutants.out
87+
88+
pr-mutants:
89+
runs-on: ubuntu-latest
90+
if: github.event_name == 'pull_request'
91+
steps:
92+
- uses: actions/checkout@v3
93+
with:
94+
fetch-depth: 0
95+
- name: Relative diff
96+
run: |
97+
git branch -av
98+
git diff origin/${{ github.base_ref }}.. | tee git.diff
99+
- uses: dtolnay/rust-toolchain@master
100+
with:
101+
toolchain: beta
102+
- uses: Swatinem/rust-cache@v2
103+
- run: cargo install cargo-mutants
104+
- name: Mutants
105+
run: |
106+
cargo mutants --no-shuffle -vV --in-diff git.diff
107+
- name: Archive mutants.out
108+
uses: actions/upload-artifact@v3
109+
if: always()
110+
with:
111+
name: mutants-incremental.out
112+
path: mutants.out

src/bin/conserve.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,6 @@ impl Command {
317317
)?,
318318
..Default::default()
319319
};
320-
if *long_listing || *verbose {
321-
// TODO(CON-23): Really Nutmeg should coordinate stdout and stderr...
322-
// todo!("Disable progress bars!");
323-
}
324320
let stats = backup(
325321
&Archive::open(open_transport(archive)?)?,
326322
source,

0 commit comments

Comments
 (0)