Skip to content

Commit

Permalink
feat: configure failure on test failure for Gradle library
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Dec 7, 2023
1 parent 5547d18 commit 0aeec1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gradle-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0aeec1a

Please sign in to comment.