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:
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:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Codegen
|
||||
on: [pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.go'
|
||||
|
||||
jobs:
|
||||
codegen:
|
||||
|
||||
@@ -5,9 +5,14 @@ on:
|
||||
- v*
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.go'
|
||||
pull_request:
|
||||
branches:
|
||||
- "master"
|
||||
paths:
|
||||
- '**.go'
|
||||
|
||||
jobs:
|
||||
golangci:
|
||||
name: golangci-lint
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Mod check
|
||||
on: [pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.go'
|
||||
|
||||
jobs:
|
||||
modcheck:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Unit tests
|
||||
on: [pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.go'
|
||||
|
||||
jobs:
|
||||
unittests:
|
||||
|
||||
Reference in new issue
Block a user