From 4c9152e256055fda134c7be69f09dd57feee0484 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 10 Jan 2024 22:08:50 -0800 Subject: [PATCH] Run tests only on relevant changes The mutants tests are getting time consuming and there's no need to run them on every change to the book --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4acad525..080732f0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,6 +8,14 @@ on: branches: - main pull_request: + paths: + - ".cargo/**" + - ".github/workflows/tests.yml" + - "Cargo.*" + - "mutants_attrs/**" + - "src/**" + - "testdata/**" + - "tests/**" # see https://matklad.github.io/2021/09/04/fast-rust-builds.html env: