fix(ci): types drift gate fails closed on a git error and sees untracked files whatever the git config

The ci.yml step assigns git status to a variable before testing it (a git
failure now fails the step, as scripts/check-all.sh already did); both gates
pass --untracked-files=all; the rust-check.sh comment names the real gate.
This commit is contained in:
bchanot committed 2026-10-13 10:09:15 +02:00
1 parent 073b25e52b
commit 496f54990a
4 files changed
+10 -7

No files matched your search

+3 -1
View File
@@ -29,7 +29,9 @@ jobs:
- name: fmt, clippy, tests, ts-rs export, cargo-deny (licenses, bans, sources)
run: bash docker/rust-run.sh bash scripts/rust-check.sh
- name: Committed TypeScript types match the Rust contracts (no modified or new file)
run: test -z "$(git status --porcelain -- packages/core-wasm/types)" || { git status --porcelain -- packages/core-wasm/types; exit 1; }
run: |
drift="$(git status --porcelain --untracked-files=all -- packages/core-wasm/types)"
if [ -n "$drift" ]; then echo "$drift"; exit 1; fi
- name: Browser module builds (size printed; the budget is asserted by the vitest proofs)
run: bash docker/rust-run.sh bash scripts/wasm-build.sh