feat(ci): add CI workflow for unit tests and typechecks

This commit is contained in:
4gray committed 2026-03-28 15:48:24 +01:00
1 parent b6110c52f6
commit 48c6567971
1 file changed
+41
+41
View File
@@ -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