From bd66ca8a07f1ccc1463931596fe4659693aea529 Mon Sep 17 00:00:00 2001 From: bpnace Date: Tue, 12 May 2026 15:25:32 +0200 Subject: [PATCH] Add CI workflow for linting, typechecking, testing, and building --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 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..4b404b4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + quality: + name: Lint, typecheck, test, and build + runs-on: ubuntu-latest + + env: + NEXT_TELEMETRY_DISABLED: "1" + NEXT_PUBLIC_SITE_URL: https://zynapse.eu + NEXT_PUBLIC_SUPABASE_URL: https://example.supabase.co + NEXT_PUBLIC_SUPABASE_ANON_KEY: ci-anon-key + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm run lint + + - name: Typecheck + run: pnpm run typecheck + + - name: Unit tests + run: pnpm run test + + - name: Build + run: pnpm run build