Skip to content

Commit

Permalink
Only run tests on pushes that could affect the results (#268)
Browse files Browse the repository at this point in the history
Changes to e.g. the book or readme shouldn't cause tests to fail, so we
don't need to block on them.
  • Loading branch information
sourcefrog authored Feb 2, 2024
2 parents 9f71f64 + fd0e43f commit 8438973
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ permissions:
contents: read

on:
pull_request:
paths:
- ".cargo/*.toml"
- ".github/workflows/tests.yml"
- "Cargo.*"
- "mutants_attrs/**"
- "src/**"
- "testdata/**"
- "tests/**"

push:
branches:
- main
pull_request:
# Actions doesn't support YAML references, so it's repeated here
paths:
- ".cargo/*.toml"
- ".github/workflows/tests.yml"
Expand Down

0 comments on commit 8438973

Please sign in to comment.