ci: add push/PR workflow (typecheck, unit tests, build)
All checks were successful
CI / test (push) Successful in 17s

Co-Authored-By: Claude
This commit is contained in:
2026-06-19 02:41:35 +00:00
parent b051193186
commit f7c2b863f3

34
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,34 @@
name: CI
# Lightweight continuous integration: typecheck, unit tests, and build on
# every push and pull request. (The Obsidian/Playwright E2E smoke is not run
# here — it needs a real Obsidian binary + virtual display; run it locally
# via `npm run e2e`.)
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npx tsc -noEmit -skipLibCheck
- name: Unit tests
run: npm test
- name: Build
run: npm run build