Verify #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |