From fe7b44852838316d118c82b21efbf9dc15c33121 Mon Sep 17 00:00:00 2001 From: luiznwz Date: Fri, 3 Jul 2026 02:54:28 -0300 Subject: [PATCH] ci: add build and typecheck workflow Runs tsc --noEmit and next build on every PR and push to main, with placeholder env vars so the build succeeds without secrets. Co-Authored-By: Claude Fable 5 --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..06bb25b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + env: + NEXT_PUBLIC_SUPABASE_URL: https://placeholder.supabase.co + NEXT_PUBLIC_SUPABASE_ANON_KEY: placeholder-anon-key + SUPABASE_SERVICE_ROLE_KEY: placeholder-service-key + ANTHROPIC_API_KEY: placeholder-anthropic + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - run: npm ci + - run: npx tsc --noEmit + - run: npx next build