Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/bindings-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ jobs:

- name: Check generated bindings are up to date
run: pnpm bindings:check
- name: Fail if the worktree is dirty after the bindings check
run: git diff --exit-code
19 changes: 19 additions & 0 deletions docs/CI.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,22 @@ in the PR. The default is calibrated against the **weighted** covered/total
ratio after including unexecuted `src/` files. Lower the threshold only when
the existing codebase cannot meet a higher bar yet; prefer adding tests instead
of weakening the gate.

## Bindings worktree cleanliness gate

After `pnpm bindings:check` regenerates the round contract's TypeScript
bindings, CI runs `git diff --exit-code` so any unexpected drift in a
tracked, generated file is visible and blocking, not just the specific
`index.ts` comparison `bindings:check` already does on its own.

### CI workflow

`.github/workflows/bindings-check.yml`, immediately after the
"Check generated bindings are up to date" step.

### Run locally

```bash
pnpm bindings:check
git diff --exit-code
```
Loading