Files
conorbronsdon__avoid-ai-wri…/.github/workflows/detector-test.yml
2026-09-12 09:48:01 -06:00

62 lines
1.5 KiB
YAML

name: detector
on:
push:
paths:
- "detector/**"
- "scripts/**"
- "examples/**"
- "package.json"
- ".github/workflows/detector-test.yml"
- "README.md"
- "SKILL.md"
- "SKILL.full.md"
- "references/**"
- "dist/**"
- "CHANGELOG.md"
- "CONTRIBUTING.md"
- "PROOF.md"
- 'bin/**'
- 'action.yml'
- '.pre-commit-hooks.yaml'
pull_request:
paths:
- "detector/**"
- "scripts/**"
- "examples/**"
- "package.json"
- ".github/workflows/detector-test.yml"
- "README.md"
- "SKILL.md"
- "SKILL.full.md"
- "references/**"
- "dist/**"
- "CHANGELOG.md"
- "CONTRIBUTING.md"
- "PROOF.md"
- 'bin/**'
- 'action.yml'
- '.pre-commit-hooks.yaml'
permissions:
contents: read
jobs:
# Kept as a single job on purpose: branch protection pins required checks by
# job name, so a second job would silently not be required until someone
# updates the rule.
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: "20"
- run: npm test
# Scores this repo's own docs with this repo's own detector. A document
# that drifts past its budget in scripts/self-scan.js fails here. PROOF.md
# explains what the numbers mean and what they do not claim.
- run: npm run self-scan:check