@@ -21,9 +21,9 @@ name: Health
21
21
# uses: dart-lang/ecosystem/.github/workflows/health.yaml@main
22
22
# with:
23
23
# sdk: beta
24
- # checks: "version,changelog,license,coverage,breaking,do-not-submit"
24
+ # checks: "version,changelog,license,coverage,breaking,do-not-submit,leaking "
25
25
# fail_on: "version,changelog,do-not-submit"
26
- # warn_on: "license,coverage,breaking"
26
+ # warn_on: "license,coverage,breaking,leaking "
27
27
# coverage_web: false
28
28
# upload_coverage: false
29
29
# use-flutter: true
54
54
# Restrict the checks to any subset of version, changelog, and license if
55
55
# needed.
56
56
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 "
59
59
type : string
60
60
required : false
61
61
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 "
63
63
default : " version,changelog,do-not-submit"
64
64
type : string
65
65
required : false
66
66
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 "
69
69
type : string
70
70
required : false
71
71
local_debug :
@@ -198,8 +198,21 @@ jobs:
198
198
ignore_packages : ${{ inputs.ignore_packages }}
199
199
checkout_submodules : ${{ inputs.checkout_submodules }}
200
200
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
+
201
214
comment :
202
- needs : [version, changelog, license, coverage, breaking, do-not-submit]
215
+ needs : [version, changelog, license, coverage, breaking, do-not-submit, leaking ]
203
216
if : always()
204
217
# These permissions are required for us to create comments on PRs.
205
218
permissions :
0 commit comments