gradle / gradle-build-action

Execute your Gradle build and trigger dependency submission
https://github.com/marketplace/actions/gradle-build-action
MIT License
671 stars 97 forks source link

Improve dependency graph failure handling #1036

Closed bigdaz closed 8 months ago

bigdaz commented 8 months ago

One goal for the original dependency-graph support was to minimize it's impact on existing workflows, by operating transparently and not impacting the build outcome. This meant that any failures in dependency-graph generation or submission were logged as warnings, but did not cause the workflow to fail.

However, in some cases the primary purpose of a workflow is to generate and submit a dependency graph: in these cases it is desirable to have the workflow fail when this process breaks.

This PR introduces a new dependency-graph-continue-on-failure parameter, which when false will enable the latter behaviour. It also adds test coverage for different failures in dependency graph generation and submission.

Fixes #1034 Fixes #997

github-actions[bot] commented 8 months ago

Job Summary for gradle-build-action

Demo adding Build Scan® comment to PR :: failing-build-with-comment-on-failure
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
kotlin-dsl no-a-real-task 8.5 :x: Build Scan PUBLISHED
github-actions[bot] commented 8 months ago

Job Summary for gradle-build-action

Demo adding Build Scan® comment to PR :: successful-build-with-always-comment
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
kotlin-dsl build 8.5 :white_check_mark: Build Scan PUBLISHED