mirror of
https://github.com/fancive/obsidian-parallel-reader.git
synced 2026-07-22 06:53:43 +00:00
Runs on push to main and on pull requests. Uses Node 22 with npm cache. Executes build, typecheck, all test suites, and biome lint. Change-Id: I77738f7afc50eae4393769b005d4f17844a6d551
33 lines
571 B
YAML
33 lines
571 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: node tests/main.test.js && node tests/generation-job-manager.test.js && node tests/modules.test.js
|
|
|
|
- name: Lint
|
|
run: npm run lint
|