Skip to content

feat: add utility tests and document bookmark-to-flush gap #25

feat: add utility tests and document bookmark-to-flush gap

feat: add utility tests and document bookmark-to-flush gap #25

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm
cache-dependency-path: |
pnpm-lock.yaml
core/pnpm-lock.yaml
- name: Install dependencies (root)
run: pnpm install --frozen-lockfile
- name: Install dependencies (core)
run: cd core && pnpm install --frozen-lockfile
- name: TypeScript check (worker)
run: pnpm exec tsc --noEmit
- name: TypeScript check (core)
run: cd core && pnpm exec tsc --noEmit
- name: Run tests with coverage
run: cd core && pnpm test -- --coverage
- name: Coverage Report
uses: davelosert/vitest-coverage-report-action@v2
if: always() && github.event_name == 'pull_request'
with:
working-directory: core
json-summary-path: ./coverage/coverage-summary.json
json-final-path: ./coverage/coverage-final.json
- name: Build
run: cd core && pnpm build