From ed0c86c838203c45981514343de130744e6d44e7 Mon Sep 17 00:00:00 2001 From: Felipe Domingues Date: Thu, 30 Apr 2026 16:11:41 -0300 Subject: [PATCH] Add CI validation workflow --- .github/workflows/validate.yml | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..32a8f22 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,49 @@ +name: Validate Mika Agent Assist + +on: + pull_request: + branches: + - main + push: + branches: + - main + - "codex/**" + workflow_dispatch: + +jobs: + frontend-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build frontend + run: npm run build + + edge-functions: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: 2.7.14 + + - name: Type-check edge functions + shell: bash + run: | + mapfile -t files < <(find supabase/functions -name '*.ts' | sort) + deno check --config supabase/functions/deno.json "${files[@]}"