name: CI on: push: branches: [main, master] pull_request: branches: [main, master] permissions: contents: read concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: gates: name: Architecture & Security Gates if: github.event.repository.private == false runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v7 - name: Setup Node.js 22 uses: actions/setup-node@v7 with: node-version: 22 - name: Run architecture, security, budget & i18n gates run: npm run test:gates - name: Verify single version SSOT sync run: npm run version:check test: name: Node ${{ matrix.node }} (${{ matrix.os }}) needs: gates if: github.event.repository.private == false runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-24.04, windows-latest, macos-26-intel] node: [22] steps: - name: Checkout repository uses: actions/checkout@v7 - name: Setup Node.js ${{ matrix.node }} uses: actions/setup-node@v7 with: node-version: ${{ matrix.node }} - name: Secret & private-path hygiene gate shell: bash run: | if git grep -nE '(^|[^A-Za-z0-9_-])(sk-[A-Za-z0-9_-]{20,}|AIza[A-Za-z0-9_-]{20,}|ghp_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{20,})' -- . ':!test/'; then echo "ERROR: Potential secret token detected in tracked source!" exit 1 fi - name: Run full test suite run: node scripts/run-tests.mjs --no-gates