All checks were successful
CI / test (push) Successful in 17s
Co-Authored-By: Claude
35 lines
744 B
YAML
35 lines
744 B
YAML
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
|