ci: extend path filter to plugin witness scripts (silent coupling fix)

The witness-verify and plugin-hooks-smoke jobs depend on:
- plugins/ruflo-core/scripts/witness/**
- plugins/ruflo-core/scripts/test-hooks.mjs
- plugins/ruflo-core/hooks/hooks.json
- verification.md.json + verification-history.jsonl + witness-fixes.json

Previously the workflow only triggered on 'v3/**' or itself, so
changes to those plugin scripts shipped without re-running the
verify job they're supposed to gate. Two recent fixes (b289c009e
witness probe-path, b5a57cbf1 docs) both shipped untested for
this reason.

Also enables workflow_dispatch for manual re-runs.

Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
ReuvenandRuFlo committed 2026-05-09 09:42:08 -04:00
1 parent b5a57cbf18
commit 802dff5173
1 file changed
+12
+12
View File
@@ -6,10 +6,22 @@ on:
paths:
- 'v3/**'
- '.github/workflows/v3-ci.yml'
# Witness-verify + plugin-hooks-smoke depend on these scripts;
# path filter keeps CI in sync with their changes.
- 'plugins/ruflo-core/scripts/witness/**'
- 'plugins/ruflo-core/scripts/test-hooks.mjs'
- 'plugins/ruflo-core/hooks/hooks.json'
- 'verification.md.json'
- 'verification-history.jsonl'
- 'witness-fixes.json'
pull_request:
branches: [main]
paths:
- 'v3/**'
- 'plugins/ruflo-core/scripts/witness/**'
- 'plugins/ruflo-core/scripts/test-hooks.mjs'
- 'plugins/ruflo-core/hooks/hooks.json'
workflow_dispatch:
env:
NODE_VERSION: '20'