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.
This commit is contained in:
Lyndon Brown 2020-12-15 05:49:27 +00:00
parent 6f1bf7dd07
commit 013a2fdcbf

View file

@ -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: