Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/fk-cascade-guard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "🛡️ FK Cascade Index Guard"

on:
workflow_call:

permissions:
contents: read

jobs:
fk-cascade-guard:
runs-on: warp-ubuntu-latest-x64-16x

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
persist-credentials: false

- name: ⎔ Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
version: 10.33.2

- name: ⎔ Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24.18.0
cache: "pnpm"

- name: 📥 Download deps
run: pnpm install --frozen-lockfile

- name: 🛡️ FK cascade index guard
run: pnpm --filter webapp run guard:fk-cascade-index -- --check
7 changes: 7 additions & 0 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- '.github/workflows/unit-tests-webapp.yml'
- '.github/workflows/e2e-webapp.yml'
- '.github/workflows/runops-guard.yml'
- '.github/workflows/fk-cascade-guard.yml'
- '.configs/**'
- 'package.json'
- 'pnpm-lock.yaml'
Expand Down Expand Up @@ -150,6 +151,11 @@ jobs:
if: needs.changes.outputs.webapp == 'true'
uses: ./.github/workflows/runops-guard.yml

fk-cascade-guard:
needs: changes
if: needs.changes.outputs.webapp == 'true'
uses: ./.github/workflows/fk-cascade-guard.yml

webapp:
needs: changes
if: needs.changes.outputs.webapp == 'true'
Expand Down Expand Up @@ -206,6 +212,7 @@ jobs:
- code-quality
- typecheck
- runops-guard
- fk-cascade-guard
- webapp
- e2e-webapp
- packages
Expand Down
1 change: 1 addition & 0 deletions apps/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"start:local": "cross-env node --max-old-space-size=8192 ./build/server.js",
"typecheck": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" tsc --noEmit -p ./tsconfig.check.json",
"guard:runops-legacy": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" tsx ./scripts/runOpsLegacyGuard.ts",
"guard:fk-cascade-index": "tsx ./scripts/fkCascadeIndexGuard.ts",
"db:seed": "tsx seed.ts",
"db:seed:ai-spans": "tsx seed-ai-spans.mts",
"db:seed:queue-metrics": "tsx seed-queue-metrics.mts",
Expand Down
Loading