artwork: screen submissions with a double-checked vision gate and dai… #812
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - run: npm ci | |
| - name: Type check and build | |
| run: npm run build | |
| - name: Test | |
| run: npm test | |
| - name: Bundle size | |
| run: npm run size | |
| - name: Audit | |
| run: npm audit --audit-level=high | |
| - name: Approved runtime dependencies | |
| run: | | |
| node <<'NODE' | |
| const { dependencies = {} } = require("./package.json"); | |
| const approved = { | |
| "@openmouse/protocol": "https://github.com/OpenMouse-Project/mouse-protocol.git", | |
| "lucide-react": "^1.43.0", | |
| "preact": "^10.29.8", | |
| }; | |
| if (JSON.stringify(dependencies) !== JSON.stringify(approved)) { | |
| console.error("Runtime dependencies differ from the maintainer-approved list."); | |
| console.error("Expected:", approved); | |
| console.error("Received:", dependencies); | |
| process.exit(1); | |
| } | |
| NODE |