mirror of
https://github.com/fancive/obsidian-parallel-reader.git
synced 2026-07-22 17:20:24 +00:00
- Create scripts/run-tests.mjs to auto-discover test files, replacing the 900-char inline test command in package.json (P3-1) - Add test:only script for CI to avoid duplicate build+typecheck (P2-1) - Preserve original SyntaxError as cause in responseJson (P2-3) Change-Id: I51d0c8c51d3b0b648ed5ff4ea282bda070b0d457
33 lines
490 B
YAML
33 lines
490 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
|
|
- run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Typecheck
|
|
run: npm run typecheck
|
|
|
|
- name: Test
|
|
run: npm run test:only
|
|
|
|
- name: Lint
|
|
run: npm run lint
|