From 0aeec1a62f9edc5b193e521a77df60cef67d57f7 Mon Sep 17 00:00:00 2001 From: Simon Templer Date: Thu, 7 Dec 2023 23:13:52 +0100 Subject: [PATCH] feat: configure failure on test failure for Gradle library --- .github/workflows/gradle-library.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle-library.yml b/.github/workflows/gradle-library.yml index 122779e..cc876c5 100644 --- a/.github/workflows/gradle-library.yml +++ b/.github/workflows/gradle-library.yml @@ -21,6 +21,10 @@ on: description: If JUnit test results are expected default: true type: boolean + fail-on-test-failure: + description: If the job should fail if tests fail + default: true + type: boolean submodules: # see https://github.com/actions/checkout default: 'false' @@ -136,7 +140,7 @@ jobs: # See https://github.com/mikepenz/action-junit-report/issues/40 annotate_only: true detailed_summary: true - fail_on_failure: true # in case of critical security vulnerabilities + fail_on_failure: ${{ inputs.fail-on-test-failure }} # e.g. in case of critical security vulnerabilities # # Upload artifact