From 013a2fdcbf6634d39e5222d4b0af1770c3cae11c Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Tue, 15 Dec 2020 05:49:27 +0000 Subject: [PATCH] ci: optimise action triggers it is pointless to run CI jobs for pushes / PRs that only change files that would never cause a failure, such as documentation. this avoids wasting resources for such situations. --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63e0175f..2376f8b0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,8 +4,10 @@ name: test on: push: branches: [master, dev] + paths: ['**.rs', '**.toml', '**.lock', '**.yml'] pull_request: branches: [master, dev] + paths: ['**.rs', '**.toml', '**.lock', '**.yml'] jobs: fmt: