diff --git a/src/adapter/outbound/notification/build.gradle b/src/adapter/outbound/notification/build.gradle index b252150f..5c06ddfd 100644 --- a/src/adapter/outbound/notification/build.gradle +++ b/src/adapter/outbound/notification/build.gradle @@ -108,6 +108,18 @@ apiSurface { ] } +// NotificationReleaseGateTest (pull-request `test`) requires the notification documents and the +// NOTIF-ADR records to exist. They are inputs of `test`, or a moved or deleted ADR would leave the +// task up to date and its absence unseen — the path filter of the workflow that used to run the +// notification tests had the same blind spot once the ADRs moved to docs/adr/. +tasks.named('test') { + inputs.dir(rootProject.file('../docs/notification')).withPropertyName('notificationDocuments') + .withPathSensitivity(PathSensitivity.RELATIVE) + inputs.files(fileTree(rootProject.file('../docs/adr')) { include 'NOTIF-ADR-*' }) + .withPropertyName('notificationAdrs') + .withPathSensitivity(PathSensitivity.RELATIVE) +} + // NotificationEvidenceVerifierTest's repository case holds docs/notification/evidence-manifest.json, // the support matrix it grades and the evidence files it names to each other. A comparison with // repository documents, so it runs in this leaf's `mainCheck`, not in the pull-request `test`