Add Ethereal Quantum-Medusa Shader Plan #747
Workflow file for this run
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: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run shader list generation | |
| run: node scripts/generate_shader_lists.js | |
| - name: Run shader metadata audit | |
| run: node audit_mouse_shaders.js | |
| - name: Check for duplicate shader IDs | |
| run: node scripts/check_duplicates.js | |
| - name: Run unit tests | |
| run: npm test -- --watchAll=false --coverage | |
| - name: Build project | |
| run: npm run build | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v3 | |
| if: github.event_name == 'pull_request' | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npx eslint src --ext .ts,.tsx --max-warnings=0 || true | |
| - name: Generate shader lists | |
| run: node scripts/generate_shader_lists.js | |
| - name: Validate JSON manifests | |
| run: | | |
| for f in public/shader-lists/*.json; do | |
| echo "Validating $f" | |
| node -e "JSON.parse(require('fs').readFileSync('$f'))" | |
| done |