Add root CLAUDE.md, docs/architecture.md, LESSONS.md, .env.example, VERSION, .claude/settings.json hooks (syntax/JSON checks since no linter/tests exist yet), and CI/version-bump GitHub workflows. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
37 lines
985 B
YAML
37 lines
985 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [development]
|
|
push:
|
|
branches: [development, main]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
# No linter/formatter is configured for this project yet (no package.json).
|
|
# This runs the same quick checks as the local Stop hook: JS syntax check
|
|
# and JSON validation on every tracked file.
|
|
- name: Syntax-check JS files
|
|
run: |
|
|
status=0
|
|
while IFS= read -r -d '' f; do
|
|
node --check "$f" || status=1
|
|
done < <(git ls-files -z -- '*.js')
|
|
exit $status
|
|
|
|
- name: Validate JSON files
|
|
run: |
|
|
status=0
|
|
while IFS= read -r -d '' f; do
|
|
node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" "$f" || status=1
|
|
done < <(git ls-files -z -- '*.json')
|
|
exit $status
|