From 48c6567971e01ba331fba3a0ab267e4364258846 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 28 Mar 2026 15:48:24 +0100 Subject: [PATCH] feat(ci): add CI workflow for unit tests and typechecks --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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 000000000..b9dbc869e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + unit-and-typecheck: + name: Unit Tests and Typechecks + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install 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: Typecheck web and Electron entry points + run: pnpm run typecheck:ci + + - name: Run curated Nx unit test suite + run: pnpm run test:unit:ci + env: + CI: true + NX_TASKS_RUNNER_DYNAMIC_OUTPUT: false