mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-08-24 07:36:32 +00:00
Runs typecheck and tests on every push and before publishing. A daily job rebuilds both vendored tarballs from one commit of the engine fork, verifies a single wasm ends up on disk, and opens a pull request.
37 lines
601 B
YAML
37 lines
601 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: tests-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
HUSKY: 0
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Typecheck
|
|
run: npx tsc --noEmit
|
|
|
|
- name: Run tests
|
|
run: npm run test:run
|