From 7fbc08896cd978c74155c94e853fcceaf1ad3b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thor=20Anker=20Kvisg=C3=A5rd=20Lange?= Date: Thu, 4 Sep 2025 09:51:48 +0200 Subject: [PATCH] feat: Only run coverage report if enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thor Anker Kvisgård Lange --- .github/workflows/go-ci.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go-ci.yaml b/.github/workflows/go-ci.yaml index caab31d..be9fcc2 100644 --- a/.github/workflows/go-ci.yaml +++ b/.github/workflows/go-ci.yaml @@ -50,6 +50,12 @@ on: required: false default: true type: boolean + run-coverage-report: + description: "Run code coverage report" + required: false + default: false + type: boolean + jobs: tests: @@ -174,7 +180,7 @@ jobs: code-coverage: name: Code Coverage runs-on: ubuntu-latest - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && inputs.run-coverage-report needs: tests permissions: contents: read