ci: only run the canary test on code changes

If no Go files changed we do not run the CI.

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han committed 2020-11-16 18:05:07 +01:00
1 parent 841efd1d94
commit 2d1cf09d8d
5 files changed
+26 -4

No files matched your search

@@ -1,5 +1,13 @@
name: Canary integration tests
on: [pull_request]
on:
pull_request:
paths:
- '**.go'
- '**.sh'
- '**.py'
- 'build/**'
- 'tests/**'
- 'images/**'
jobs:
canary:
+4 -1
View File
@@ -1,5 +1,8 @@
name: Codegen
on: [pull_request]
on:
pull_request:
paths:
- '**.go'
jobs:
codegen:
+5
View File
@@ -5,9 +5,14 @@ on:
- v*
branches:
- master
paths:
- '**.go'
pull_request:
branches:
- "master"
paths:
- '**.go'
jobs:
golangci:
name: golangci-lint
+4 -1
View File
@@ -1,5 +1,8 @@
name: Mod check
on: [pull_request]
on:
pull_request:
paths:
- '**.go'
jobs:
modcheck:
+4 -1
View File
@@ -1,5 +1,8 @@
name: Unit tests
on: [pull_request]
on:
pull_request:
paths:
- '**.go'
jobs:
unittests: