Skip to content

Commit

Permalink
Make the action definition immediately usable
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Jul 12, 2022
1 parent 84980db commit e3f7534
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,19 +252,21 @@ difficult. cargo-mutants can help in a few ways:

### Continuous integration

Here is an example of a GitHub Actions workflow that runs mutation tests and uploads the results as an artifact.
Here is an example of a GitHub Actions workflow that runs mutation tests and uploads the results as an artifact. This will fail if it finds any uncaught mutants.

```yml
name: Mutation
name: cargo-mutants

on: [pull_request, push]

jobs:
mutation:
cargo-mutants:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install cargo-mutants
run: cargo install cargo-mutants
- name: Run mutant tests
Expand Down

0 comments on commit e3f7534

Please sign in to comment.