From 6c9e18a6b5a4b3a2afbd4758aa291e8746325c29 Mon Sep 17 00:00:00 2001 From: Malte Poll Date: Fri, 14 Oct 2022 10:27:49 +0200 Subject: [PATCH] Run code tests on go.mod and go.sum changes --- .github/workflows/build-binaries.yml | 4 ++++ .github/workflows/check-licenses.yml | 2 ++ .github/workflows/test-govulncheck.yml | 4 ++++ .github/workflows/test-integration.yml | 4 ++++ .github/workflows/test-lint.yml | 4 ++++ .github/workflows/test-tidy.yml | 4 ++++ .github/workflows/test-unittest.yml | 4 ++++ 7 files changed, 26 insertions(+) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index d65276659..debef7564 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -8,9 +8,13 @@ on: - main paths: - "**.go" + - "**/go.mod" + - "**/go.sum" pull_request: paths: - "**.go" + - "**/go.mod" + - "**/go.sum" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index 88ddb394b..3ca0cc531 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -6,10 +6,12 @@ on: paths: - "**.go" - "**/go.mod" + - "**/go.sum" pull_request: paths: - "**.go" - "**/go.mod" + - "**/go.sum" jobs: check: diff --git a/.github/workflows/test-govulncheck.yml b/.github/workflows/test-govulncheck.yml index 309067a75..6d73dfb96 100644 --- a/.github/workflows/test-govulncheck.yml +++ b/.github/workflows/test-govulncheck.yml @@ -7,9 +7,13 @@ on: - main paths: - "**.go" + - "**/go.mod" + - "**/go.sum" pull_request: paths: - "**.go" + - "**/go.mod" + - "**/go.sum" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index 125726816..bf15ecce1 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -7,9 +7,13 @@ on: - main paths: - "**.go" + - "**/go.mod" + - "**/go.sum" pull_request: paths: - "**.go" + - "**/go.mod" + - "**/go.sum" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: diff --git a/.github/workflows/test-lint.yml b/.github/workflows/test-lint.yml index 40b4f617b..24f3a255c 100644 --- a/.github/workflows/test-lint.yml +++ b/.github/workflows/test-lint.yml @@ -7,9 +7,13 @@ on: - main paths: - "**.go" + - "**/go.mod" + - "**/go.sum" pull_request: paths: - "**.go" + - "**/go.mod" + - "**/go.sum" permissions: contents: read diff --git a/.github/workflows/test-tidy.yml b/.github/workflows/test-tidy.yml index 7181d3655..9c9f81c80 100644 --- a/.github/workflows/test-tidy.yml +++ b/.github/workflows/test-tidy.yml @@ -7,9 +7,13 @@ on: - main paths: - "**.go" + - "**/go.mod" + - "**/go.sum" pull_request: paths: - "**.go" + - "**/go.mod" + - "**/go.sum" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: diff --git a/.github/workflows/test-unittest.yml b/.github/workflows/test-unittest.yml index 170e12d37..ab5bf24ba 100644 --- a/.github/workflows/test-unittest.yml +++ b/.github/workflows/test-unittest.yml @@ -7,9 +7,13 @@ on: - main paths: - "**.go" + - "**/go.mod" + - "**/go.sum" pull_request: paths: - "**.go" + - "**/go.mod" + - "**/go.sum" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: