Skip to content

Commit 2b828e1

Browse files
committed
Add test gate
1 parent e59ec3f commit 2b828e1

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/validate.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,25 @@ jobs:
8282
with:
8383
args: --config .github/lychee.toml --offline --include-fragments --no-progress "./**/*.md"
8484
fail: true
85+
86+
# Single gate that aggregates the per-skill matrix and the repo-wide manifest
87+
# checks. Branch protection can require just this one check: it only passes
88+
# when every skill validated and the manifest job succeeded. Because matrix
89+
# jobs always succeed individually under `fail-fast: false`, we inspect the
90+
# job results explicitly rather than relying on `needs` short-circuiting.
91+
validate:
92+
name: Validate skills and plugin manifests
93+
needs: [validate-skill, validate-manifests]
94+
if: always()
95+
runs-on: ubuntu-latest
96+
steps:
97+
- name: Verify all validation jobs passed
98+
run: |
99+
echo "validate-skill result: ${{ needs.validate-skill.result }}"
100+
echo "validate-manifests result: ${{ needs.validate-manifests.result }}"
101+
if [ "${{ needs.validate-skill.result }}" != "success" ] || \
102+
[ "${{ needs.validate-manifests.result }}" != "success" ]; then
103+
echo "One or more validation jobs failed." >&2
104+
exit 1
105+
fi
106+
echo "All skill and manifest validations passed."

0 commit comments

Comments
 (0)