fix: allinone Skill 云函数示例缺少 Node.js/CommonJS 环境说明,导致 LLM Judge 评估时报 require is not defined #319
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Compat Check | |
| on: | |
| pull_request: | |
| paths: | |
| - 'config/source/skills/**' | |
| - 'config/source/guideline/**' | |
| - 'config/source/editor-config/**' | |
| - 'scripts/build-compat-config.mjs' | |
| - 'scripts/diff-compat-config.mjs' | |
| - 'scripts/update-compat-baseline.mjs' | |
| - 'scripts/sync-config.mjs' | |
| - 'package.json' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'config/source/skills/**' | |
| - 'config/source/guideline/**' | |
| - 'config/source/editor-config/**' | |
| - 'scripts/build-compat-config.mjs' | |
| - 'scripts/diff-compat-config.mjs' | |
| - 'scripts/update-compat-baseline.mjs' | |
| - 'scripts/sync-config.mjs' | |
| - 'package.json' | |
| jobs: | |
| compat-diff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Verify compatibility contract and advisory text surface drift | |
| run: npm run check:compat-diff |