Remove unused Supabase request auth helper #149
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: Baseline verification | ||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| push: | ||
| branches: [main] | ||
| permissions: | ||
| contents: read | ||
| concurrency: | ||
| group: baseline-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| workflows: | ||
| name: Workflow validation | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v7 | ||
| - name: Validate GitHub Actions workflows | ||
| uses: raven-actions/actionlint@3d39aea434753780c3b3d4a1a31c854b4dbf49d7 | ||
| with: | ||
| version: 1.7.12 | ||
| backend: | ||
| name: Backend build and tests | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 12 | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v7 | ||
| - name: Set up pinned Node.js and npm | ||
| uses: ./.github/actions/setup-ross-node | ||
| - name: Validate backend package manifests | ||
| run: node -e "const fs=require('fs'); for (const f of ['backend/package.json','backend/package-lock.json']) JSON.parse(fs.readFileSync(f, 'utf8'))" | ||
| - name: Install backend dependencies | ||
| run: npm ci --prefix backend | ||
| - name: Run backend tests | ||
| run: npm run test:chat --prefix backend && npm run test:legal-sources --prefix backend && npm run test:security --prefix backend | ||
| - name: Build backend | ||
| run: npm run build:backend | ||
| frontend: | ||
| name: Frontend build | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 12 | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v7 | ||
| - name: Set up pinned Node.js and npm | ||
| uses: ./.github/actions/setup-ross-node | ||
| - name: Validate frontend package manifests | ||
| run: node -e "const fs=require('fs'); for (const f of ['frontend/package.json','frontend/package-lock.json']) JSON.parse(fs.readFileSync(f, 'utf8'))" | ||
| - name: Install frontend dependencies | ||
| run: npm ci --prefix frontend | ||
| - name: Build frontend | ||
| run: npm run build:frontend | ||
| website: | ||
| name: Website build, lint, and routes | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 12 | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v7 | ||
| - name: Set up pinned Node.js and npm | ||
| uses: ./.github/actions/setup-ross-node | ||
| - name: Validate website package manifests | ||
| run: node -e "const fs=require('fs'); for (const f of ['website/package.json','website/package-lock.json']) JSON.parse(fs.readFileSync(f, 'utf8'))" | ||
| - name: Install website dependencies | ||
| run: npm ci --prefix website | ||
| - name: Build website | ||
| run: npm run build:website | ||
| - name: Lint website | ||
| run: npm run lint:website | ||
| - name: Test website routes | ||
| run: npm run test:website | ||
| governance: | ||
| name: Governance and release checks | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v7 | ||
| - name: Set up pinned Node.js and npm | ||
| uses: ./.github/actions/setup-ross-node | ||
| - name: Validate all package manifests | ||
| run: node -e "const fs=require('fs'); for (const d of ['.','backend','frontend','website']) for (const f of ['package.json','package-lock.json']) JSON.parse(fs.readFileSync(d === '.' ? f : d + '/' + f, 'utf8'))" | ||
| - name: Install locked dependencies | ||
| run: npm run install:all | ||
| - name: Regenerate release manifest for verification | ||
| run: npm run build:release-manifest | ||
| - name: Verify repository and release controls | ||
| run: | | ||
| npm run toolchain:check | ||
| npm run test:workflow-sources | ||
| npm run test:public-content | ||
| npm run test:release-manifest | ||
| npm run test:operations | ||
| npm run test:evaluation | ||
| npm run test:final | ||
| npm run test:baseline | ||
| npm run audit:high | ||
| npm run lint:baseline | ||
| verify: | ||
| name: verify | ||
| if: always() | ||
| needs: [workflows, backend, frontend, website, governance] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Require every Baseline partition to pass | ||
| env: | ||
| WORKFLOWS_RESULT: ${{ needs.workflows.result }} | ||
| BACKEND_RESULT: ${{ needs.backend.result }} | ||
| FRONTEND_RESULT: ${{ needs.frontend.result }} | ||
| WEBSITE_RESULT: ${{ needs.website.result }} | ||
| GOVERNANCE_RESULT: ${{ needs.governance.result }} | ||
| run: | | ||
| for result in "$WORKFLOWS_RESULT" "$BACKEND_RESULT" "$FRONTEND_RESULT" "$WEBSITE_RESULT" "$GOVERNANCE_RESULT"; do | ||
| test "$result" = success | ||
| done | ||