Skip to content

Commit b11a5e8

Browse files
ci: run bun run generate in CI to ensure bindings are committed (#29)
* ci: run `bun run generate` in CI to ensure bindings are committed This commit deliberately checks for no diffs to show failure. * correct check now * use nico's suggestion * hijack bing's pr * add tarball * Print out diff * Revert "hijack bing's pr" This reverts commit a247d2b. * Revert "add tarball" This reverts commit 0ea73f8. --------- Co-authored-by: Nico Flaig <[email protected]>
1 parent b3499f8 commit b11a5e8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ jobs:
3939

4040
- run: bun install
4141

42+
- name: Generate bindings
43+
run: |
44+
bun run generate
45+
if [[ $(git diff --stat src/binding.ts) != '' ]]; then
46+
git --no-pager diff
47+
echo "Bindings changed but was not committed. Re-generate and commit the new binding.ts!"
48+
exit 1
49+
fi
50+
4251
# check/build/test
4352

4453
# Zig fmt is failing on windows and is redundant to run all platforms. So we run only on linux.

0 commit comments

Comments
 (0)