-
Notifications
You must be signed in to change notification settings - Fork 38
60 lines (49 loc) · 1.47 KB
/
Copy pathembed.yaml
File metadata and controls
60 lines (49 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Embed
on:
push:
branches:
- main
paths:
- embed/**
- scripts/check-api.mjs
- scripts/check-exports.mjs
- package.json
- package-lock.json
- .github/workflows/embed.yaml
pull_request:
branches:
- main
paths:
- embed/**
- scripts/check-api.mjs
- scripts/check-exports.mjs
- package.json
- package-lock.json
- .github/workflows/embed.yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: "22"
# @simplepdf/embed is a workspace package, so install from the root.
- name: Install dependencies
run: npm ci
- name: Types
run: npm run --workspace @simplepdf/embed test:types
- name: Tests
run: npm run --workspace @simplepdf/embed test
- name: Bundle size budgets
run: npm run --workspace @simplepdf/embed check:size
- name: Export load
run: npm run --workspace @simplepdf/embed check:exports
- name: API surface
run: npm run --workspace @simplepdf/embed check:api
# Fails whenever the committed embed-api.json pin differs from the live
# /embed/json manifest — re-sync the pin and `npm run generate` to fix.
- name: Contract pin matches live manifest
run: npm run --workspace @simplepdf/embed check:contract