build(workflows): add each workflow to its own trigger conditions

For each workflow, add its path to its own trigger conditions so that it automatically re-triggers for testing purposes whenever it is changed.

PR: #443
This commit is contained in:
innovaker 2020-11-28 19:18:18 +00:00 committed by Pete Johanson
parent 307fd5d250
commit e6d863c610
4 changed files with 8 additions and 0 deletions

View file

@ -1,9 +1,11 @@
on: on:
push: push:
paths: paths:
- ".github/workflows/build.yml"
- "app/**" - "app/**"
pull_request: pull_request:
paths: paths:
- ".github/workflows/build.yml"
- "app/**" - "app/**"
name: Build name: Build

View file

@ -3,6 +3,7 @@ name: clang-format-lint
on: on:
push: push:
paths: paths:
- ".github/workflows/clang-format-lint.yml"
- "app/boards/**/*.c" - "app/boards/**/*.c"
- "app/include/**/*.h" - "app/include/**/*.h"
- "app/src/**" - "app/src/**"
@ -10,6 +11,7 @@ on:
- "app/drivers/**/*.h" - "app/drivers/**/*.h"
pull_request: pull_request:
paths: paths:
- ".github/workflows/clang-format-lint.yml"
- "app/boards/**/*.c" - "app/boards/**/*.c"
- "app/include/**/*.h" - "app/include/**/*.h"
- "app/src/**" - "app/src/**"

View file

@ -3,9 +3,11 @@ name: doc-checks
on: on:
push: push:
paths: paths:
- ".github/workflows/doc-checks.yml"
- "docs/**" - "docs/**"
pull_request: pull_request:
paths: paths:
- ".github/workflows/doc-checks.yml"
- "docs/**" - "docs/**"
jobs: jobs:

View file

@ -1,10 +1,12 @@
on: on:
push: push:
paths: paths:
- ".github/workflows/test.yml"
- "app/tests/**" - "app/tests/**"
- "app/src/**" - "app/src/**"
pull_request: pull_request:
paths: paths:
- ".github/workflows/test.yml"
- "app/tests/**" - "app/tests/**"
- "app/src/**" - "app/src/**"