mirror of
https://github.com/Dasemu/Phenocheck.git
synced 2026-11-26 15:26:17 +00:00
Add root CLAUDE.md, docs/architecture.md, LESSONS.md, .env.example, .claude/settings.json hooks (PostToolUse JS syntax check, Stop hook validating manifest.json + node --check on all JS), and GitHub Actions workflows (ci.yml, version.yml) for this plain-JS Chrome extension with no existing build/lint/test tooling. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
25 lines
761 B
YAML
25 lines
761 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 or test suite is configured for this plain-JS browser extension
|
|
# (no package.json/bundler). This validates manifest.json and runs a syntax
|
|
# check on every JS file, matching the local Stop hook.
|
|
- name: Validate manifest.json
|
|
run: node -e "JSON.parse(require('fs').readFileSync('manifest.json', 'utf8'))"
|
|
- name: Syntax check (node --check)
|
|
run: |
|
|
find . -name "*.js" -not -path "./.git/*" -print0 | xargs -0 -n1 node --check
|