name: Core Machine Catalogue Audit on: pull_request: paths: - "src/modules/machines/**" - "src/animations/coreMachineAnimations.ts" - "scripts/validate-core-machine-catalogue.mjs" - "scripts/audit-core-machine-catalogue-depth.mjs" - "docs/core-machine-*.md" - "docs/procedural-blueprints-and-asset-replacements.md" - ".github/workflows/core-machine-catalogue-audit.yml" push: branches: - main paths: - "src/modules/machines/**" - "src/animations/coreMachineAnimations.ts" - "scripts/validate-core-machine-catalogue.mjs" - "scripts/audit-core-machine-catalogue-depth.mjs" - "docs/core-machine-*.md" - "docs/procedural-blueprints-and-asset-replacements.md" - ".github/workflows/core-machine-catalogue-audit.yml" permissions: contents: read jobs: catalogue-audit: name: Validate Phase 1 machine catalogue depth runs-on: ubuntu-latest timeout-minutes: 10 steps: - name: Check out repository uses: actions/checkout@v4 - name: Set up Node uses: actions/setup-node@v4 with: node-version: 20 cache: npm - name: Install dependencies shell: bash run: | if [ -f package-lock.json ]; then npm ci else npm install fi - name: Run structural catalogue validator run: node scripts/validate-core-machine-catalogue.mjs - name: Run depth audit run: node scripts/audit-core-machine-catalogue-depth.mjs --ci