Repository navigation
Restore toolkit CI with parity, tests, lint and link checks - #23
Merged
Merged
Conversation
- .github/workflows/toolkit-ci.yml: shellcheck, hook/script tests, markdownlint, lychee, tri-platform parity, hygiene - tools/check-parity.sh: normalises per-platform path differences so parity can actually pass - tests/run.sh: plain-bash regression tests for hooks and scripts - fix files_in_scope never being enforced (jq filter compared each path with itself) - sync drifted platform copies (spec/design templates, review checklists, ADR template, brownfield skill path) - fix detect-stack empty db_engines output, shellcheck findings, dead links, markdown lint findings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings back CI for the toolkit itself. The previous
ci.ymlwas removed after 4 of its 5 jobs kept failing. This version makes every job pass and adds tests for the hooks and scripts.Why the old CI failed, and what changed
diff -rqflags the legitimate.claude/vs.github/vs.windsurf/references in every file, so it could never passtools/check-parity.shnormalises platform prefixes and slash-command file paths before diffing, and checks that each platform has the same set of filesls -tcalls kept intentionally carry justifieddisablecomments.markdownlint-cli2.yaml(skipsexamples/, the slide deck and the vendored Google Angular skills), turned off cosmetic MD060, autofixed the rest, and hand-fixed list indentation and code-fence languages--exclude-mailno longer exists in lychee, and.claude/,.github/,.windsurf/were never scannedlychee.tomlturns onhidden = trueand accepts 429s; two dead links replaced (EARS → alistairmavin.com, Flyway docs)New tests job:
tests/run.shhas 44 plain-bash tests covering every Claude hook,traceability.sh,detect-stack.sh, thesettings.jsonwiring, and how each hook behaves whenjqis missing. They pass on both bash 3.2 and bash 5.Bugs found while doing this
files_in_scopewas never enforced. In($f | endswith(.)), jq rebinds.to$f, so every path matched itself and nothing was blocked. Entries now match exactly or as a path suffix that starts at a/..github/and.windsurf/lacked the "Domain Entities and Relationships" sections in the spec and design templates and the review checklists../.githu.github/path.detect-stack.shprinted"db_engines": [""], plus an unbound-variable error on bash 3.2, when the pom has no DB driver.Docs
README, CONTRIBUTING, the PR template and
platform-mapping.mdnow point totoolkit-ci.yml,tools/check-parity.shandtests/run.sh. CHANGELOG is updated.Notes for review
git diff -w.tools/andtests/are only for maintaining the toolkit; consumer repos don't need them.Testing
Ran every CI job locally on macOS: shellcheck is clean, 44/44 tests pass, markdownlint reports 0 issues, lychee reports 0 errors, parity is OK, and the hooks and scripts are executable.