chore: update all references for baker-scripts/docker-compose-debugger #39
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: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.22.0 | |
| cache: npm | |
| - run: npm ci | |
| - run: npx tsc --noEmit | |
| - run: npx vitest run --coverage --passWithNoTests | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.22.0 | |
| cache: npm | |
| - run: npm ci | |
| # Dependency audit — fail on high/critical vulnerabilities | |
| - name: npm audit | |
| run: npm audit --audit-level=high | |
| # Secret scanning with gitleaks | |
| - name: Gitleaks secret scan | |
| uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} | |
| # Build output size gate — single-file HTML should stay under 150 KB | |
| - name: Build and check output size | |
| run: | | |
| npm run build | |
| size=$(stat -c%s dist/index.html) | |
| echo "Build output: ${size} bytes" | |
| if [ "$size" -gt 153600 ]; then | |
| echo "::error::Build output exceeds 150 KB (${size} bytes) — unexpected bloat" | |
| exit 1 | |
| fi |