@@ -21,9 +21,9 @@ name: Health
2121# uses: dart-lang/ecosystem/.github/workflows/health.yaml@main
2222# with:
2323# sdk: beta
24- # checks: "version,changelog,license,coverage,breaking,do-not-submit"
24+ # checks: "version,changelog,license,coverage,breaking,do-not-submit,leaking "
2525# fail_on: "version,changelog,do-not-submit"
26- # warn_on: "license,coverage,breaking"
26+ # warn_on: "license,coverage,breaking,leaking "
2727# coverage_web: false
2828# upload_coverage: false
2929# use-flutter: true
5454 # Restrict the checks to any subset of version, changelog, and license if
5555 # needed.
5656 checks :
57- description : What to check for in the PR health check - any subset of "version,changelog,license,coverage,breaking,do-not-submit"
58- default : " version,changelog,license,coverage,breaking,do-not-submit"
57+ description : What to check for in the PR health check - any subset of "version,changelog,license,coverage,breaking,do-not-submit,leaking "
58+ default : " version,changelog,license,coverage,breaking,do-not-submit,leaking "
5959 type : string
6060 required : false
6161 fail_on :
62- description : Which checks should lead to failure - any subset of "version,changelog,license,coverage,breaking,do-not-submit"
62+ description : Which checks should lead to failure - any subset of "version,changelog,license,coverage,breaking,do-not-submit,leaking "
6363 default : " version,changelog,do-not-submit"
6464 type : string
6565 required : false
6666 warn_on :
67- description : Which checks should not fail, but only warn - any subset of "version,changelog,license,coverage,breaking,do-not-submit"
68- default : " license,coverage,breaking"
67+ description : Which checks should not fail, but only warn - any subset of "version,changelog,license,coverage,breaking,do-not-submit,leaking "
68+ default : " license,coverage,breaking,leaking "
6969 type : string
7070 required : false
7171 local_debug :
@@ -198,8 +198,21 @@ jobs:
198198 ignore_packages : ${{ inputs.ignore_packages }}
199199 checkout_submodules : ${{ inputs.checkout_submodules }}
200200
201+ leaking :
202+ if : ${{ contains(inputs.checks, 'leaking') }}
203+ uses : ./.github/workflows/health_base.yaml
204+ with :
205+ sdk : ${{ inputs.sdk }}
206+ check : leaking
207+ fail_on : ${{ inputs.fail_on }}
208+ warn_on : ${{ inputs.warn_on }}
209+ local_debug : ${{ inputs.local_debug }}
210+ use-flutter : ${{ inputs.use-flutter }}
211+ ignore_packages : ${{ inputs.ignore_packages }}
212+ checkout_submodules : ${{ inputs.checkout_submodules }}
213+
201214 comment :
202- needs : [version, changelog, license, coverage, breaking, do-not-submit]
215+ needs : [version, changelog, license, coverage, breaking, do-not-submit, leaking ]
203216 if : always()
204217 # These permissions are required for us to create comments on PRs.
205218 permissions :
0 commit comments