Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,28 @@ jobs:
with:
node-version: 24
cache: npm
# CONTRIBUTING.md "Code comments": comments say what the code does, not
# which phase of the project produced it. Only the framing vocabulary is
# matched -- issue links are allowed where the thread carries detail the
# comment cannot, so bare `#NNN` is deliberately not matched here (it
# would also hit every hex colour). Prose docs are exempt by path.
#
# One letter of each alternative is bracketed so this file, which holds
# the pattern, is not itself a match -- the scan covers .github/workflows.
#
# --exclude=README.md: prose docs keep their history, and tests/visual's
# README sits inside a scanned path (it carries eight issue references
# today). -I: skip the binary snapshots under tests/visual/__snapshots__,
# where grep would report "Binary file ... matches" and fail the step.
- name: No project framing in code comments
run: |
if grep -rnIE --exclude=README.md \
'(Phas[e] [0-9]|PLA[N]\.md|parit[y] milestone|open questio[n] [0-9])' \
app styles plugins scripts tests template.yml tailwind.config.js \
playwright.config.ts .github/workflows; then
echo "::error::Project framing in a code comment -- see CONTRIBUTING.md 'Code comments'."
exit 1
fi
- run: npm ci
- run: npm run compile
- run: npm run test:unit
Expand Down
Loading