- Removed deprecated functions related to document parsing and blob storage in blobstore.ts. - Introduced new PDF rendering logic in pdf-preview-renderer.ts and pdf-preview-pdfjs-runtime.ts. - Updated previews-render.ts to utilize the new PDF rendering functions. - Refactored user-whisper-align-job.ts to use the compute-worker client for alignment requests. - Enhanced artifact.ts and operation.ts to validate parsed PDF artifacts and resolve current PDF parses. - Updated snapshot.ts to align with new worker operation types. - Adjusted runtime-config.ts to check for compute-worker availability. - Modified types in parsed-pdf.ts and tts.ts to reflect changes in the compute-worker protocol. - Added unit tests for PDF artifact validation and compute-worker client contract. - Removed obsolete pdf-op-key.vitest.spec.ts test file.
29 lines
774 B
YAML
29 lines
774 B
YAML
name: Vitest Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
pull_request:
|
|
branches: [main, master]
|
|
|
|
jobs:
|
|
vitest-testing:
|
|
timeout-minutes: 20
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: lts/*
|
|
package-manager-cache: false
|
|
- uses: pnpm/action-setup@v6
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Apply drizzle migrations (SQLite)
|
|
run: pnpm migrate
|
|
- name: Run Vitest suites
|
|
run: pnpm test:unit
|
|
- name: Verify compute worker contract and boundary
|
|
run: pnpm compute:openapi:check && pnpm check:compute-boundary
|