mirror of
https://github.com/conorbronsdon/avoid-ai-writing.git
synced 2026-09-19 01:32:11 +08:00
62 lines
1.5 KiB
YAML
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
|