ci: run tests on workflow file change

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-01-19 10:35:48 +01:00
parent 690b50b29d
commit 71708a967c
12 changed files with 26 additions and 0 deletions

View File

@ -7,11 +7,15 @@ on:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./.github/workflows/check-licenses.yml"
- "hack/check-licenses.sh"
pull_request:
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./.github/workflows/check-licenses.yml"
- "hack/check-licenses.sh"
jobs:
check:

View File

@ -8,10 +8,12 @@ on:
paths:
- "**.md"
- "**.html"
- "./.github/workflows/check-links.yml"
pull_request:
paths:
- "**.md"
- "**.html"
- "./.github/workflows/check-links.yml"
jobs:
linkChecker:

View File

@ -10,11 +10,13 @@ on:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-govulncheck.yml"
pull_request:
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-govulncheck.yml"
jobs:
govulncheck:

View File

@ -10,11 +10,13 @@ on:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-integration.yml"
pull_request:
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-integration.yml"
jobs:
integration-test:

View File

@ -10,11 +10,13 @@ on:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-lint.yml"
pull_request:
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-lint.yml"
permissions:
contents: read

View File

@ -9,9 +9,11 @@ on:
- "release/**"
paths:
- "operators/**"
- "./.github/workflows/test-operator-codegen.yml"
pull_request:
paths:
- "operators/**"
- "./.github/workflows/test-operator-codegen.yml"
jobs:
govulncheck:

View File

@ -9,11 +9,13 @@ on:
- "**.sh"
- "**.bash"
- "image/**"
- "./github/workflows/test-shellcheck.yml"
pull_request:
paths:
- "**.sh"
- "**.bash"
- "image/**"
- "./github/workflows/test-shellcheck.yml"
jobs:
shellcheck:

View File

@ -9,11 +9,13 @@ on:
- "**.sh"
- "**.bash"
- "image/**"
- "./github/workflows/test-shellfmt.yml"
pull_request:
paths:
- "**.sh"
- "**.bash"
- "image/**"
- "./github/workflows/test-shellfmt.yml"
jobs:
shellcheck:

View File

@ -9,10 +9,12 @@ on:
paths:
- "**.tf"
- "**.lock.hcl"
- "./github/workflows/test-tf.yml"
pull_request:
paths:
- "**.tf"
- "**.lock.hcl"
- "./github/workflows/test-tf.yml"
jobs:
tfsec:

View File

@ -8,9 +8,11 @@ on:
- "release/**"
paths:
- "**.tf"
- "./github/workflows/test-tfsec.yml"
pull_request:
paths:
- "**.tf"
- "./github/workflows/test-tfsec.yml"
permissions:
contents: read

View File

@ -10,11 +10,13 @@ on:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-tidy.yml"
pull_request:
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-tidy.yml"
jobs:
gotidycheck:

View File

@ -10,11 +10,13 @@ on:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-unittest.yml"
pull_request:
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "./github/workflows/test-unittest.yml"
jobs:
test-linux: