From f7c2b863f34384493efc517a800262a47bb17d95 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 19 Jun 2026 02:41:35 +0000 Subject: [PATCH] ci: add push/PR workflow (typecheck, unit tests, build) Co-Authored-By: Claude --- .gitea/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..ad90989 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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