chore(deps-dev): bump the development group with 3 updates #354
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: | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| - run: npm ci | |
| - name: Type check | |
| run: npm run typecheck | |
| - name: Lint | |
| run: npm run lint | |
| - name: i18n check | |
| run: npm run i18n:check | |
| - name: Check format (changed files, Prettier) | |
| run: node scripts/check-format-changed.mjs | |
| - name: Security audit (prod deps only) | |
| run: npm audit --omit=dev --audit-level=high | |
| - name: Test | |
| run: npm test | |
| - name: Coverage gates | |
| run: npm run test:coverage | |
| - name: Extension build | |
| run: npm run ext:build | |
| - name: Bundle | |
| env: | |
| KAR_BUNDLE_BUDGET_STRICT: "1" | |
| KAR_BUNDLE_EDITOR_MAX_KB: "600" | |
| KAR_BUNDLE_APP_MAX_KB: "5" | |
| run: npm run build:bundle | |
| - name: Bundle smoke | |
| run: | | |
| test -f dist/js/app.js | |
| test -f dist/boot-theme.js | |
| test -f dist/sw.js | |
| test -f dist/_headers | |
| test -d dist/audio/ui | |
| test -f dist/audio/ui/click-soft.mp3 | |
| grep -q "kar-v" dist/sw.js | |
| grep -q "api/" dist/sw.js | |
| grep -q "Content-Security-Policy" dist/_headers | |
| APP_V=$(node -e "const fs=require('fs');const s=fs.readFileSync('js/core/version.js','utf8');const m=s.match(/APP_VERSION\\s*=\\s*[\"']([^\"']+)[\"']/);if(!m)process.exit(1);process.stdout.write(m[1]+'-bundle')") | |
| grep -q "$APP_V" dist/sw.js | |
| e2e: | |
| runs-on: ubuntu-latest | |
| needs: check | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| - run: npm ci | |
| - name: Install Playwright Chromium | |
| run: npx playwright install --with-deps chromium | |
| - name: E2E smoke | |
| run: npm run test:e2e |