Skip to content

feat(P074): consolidate React embed on the @simplepdf/embed core (#38) #60

feat(P074): consolidate React embed on the @simplepdf/embed core (#38)

feat(P074): consolidate React embed on the @simplepdf/embed core (#38) #60

Workflow file for this run

name: React
on:
push:
branches:
- main
paths:
- react/**
- embed/**
- .github/workflows/react.yaml
pull_request:
branches:
- main
paths:
- react/**
- embed/**
- .github/workflows/react.yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
# react-embed-pdf depends on the @simplepdf/embed workspace package, so install
# from the workspace ROOT (the internal dep resolves via the workspace, not npm)
# rather than a per-package `npm ci`, and build the core before type-checking.
- name: Install dependencies
run: npm ci
- name: Build the core
run: npm run --workspace @simplepdf/embed build
- name: Formatting
run: npm run --workspace @simplepdf/react-embed-pdf test:format
- name: Types
run: npm run --workspace @simplepdf/react-embed-pdf test:types
- name: Tests
run: npm run --workspace @simplepdf/react-embed-pdf test