Skip to content

Verify

Verify #2

Workflow file for this run

# Ensures committed sdks/ match fern/ when the API definition changes.
# SDKs are not auto-committed here — releases run `make generate` via scripts/version.ts.
name: Verify
on:
pull_request:
paths:
- "fern/**"
push:
paths:
- "fern/**"
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "latest"
- name: Install and regenerate
run: |
bun install --frozen-lockfile
bun run scripts/verify-versions.ts
make generate
- name: Assert sdks/ matches committed output
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "::error::sdks/ is out of sync with fern/. Run locally: make generate && commit sdks/"
git status --porcelain
git diff --stat
exit 1
fi