ci: add push/PR workflow (typecheck, unit tests, build)
All checks were successful
CI / test (push) Successful in 17s
All checks were successful
CI / test (push) Successful in 17s
Co-Authored-By: Claude
This commit is contained in:
34
.gitea/workflows/ci.yml
Normal file
34
.gitea/workflows/ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user