-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Run
cargo mutants
on changed code
- Loading branch information
1 parent
203987a
commit fc726db
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Find mutants | ||
on: | ||
pull_request: | ||
branches: ["main"] | ||
paths: [".github/**"] | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
incremental-mutants: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'pull_request' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Relative diff | ||
run: git diff origin/${{ github.base_ref }}.. | tee git.diff | ||
|
||
- name: Install Rust | ||
uses: ./.github/actions/rust | ||
with: | ||
version: stable | ||
components: rustfmt, clippy, llvm-tools-preview | ||
|
||
- name: Mutants | ||
run: cargo mutants --no-shuffle -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 |