Repository navigation
fix(ci): let the Pages workflow enable Pages itself #16
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] | |
| pull_request: | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Test | |
| run: npm test | |
| - name: Build | |
| run: npm run build | |
| - name: Manifest sanity | |
| run: node -e "JSON.parse(require('fs').readFileSync('dist/manifest.json','utf8')); console.log('manifest OK')" | |
| - name: No runtime dependencies (auditability commitment) | |
| run: node -e "const d = require('./package.json').dependencies; if (d && Object.keys(d).length) { console.error('runtime deps found:', d); process.exit(1); } console.log('zero runtime deps OK')" | |
| - name: Upload unpacked extension | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ration-unpacked | |
| path: dist/ |