Skip to content

Commit c61621a

Browse files
authored
chore(ci): ensure no file changes after build-upstream step (#1563)
## Summary - Add a `git status --porcelain` check immediately after the `Build with upstream` step in the `cli-e2e-test` job - Fails the job with `git status` + `git diff` output if the build mutates any tracked files - Gated to `x86_64-unknown-linux-gnu` only Refs #1305 (comment) ## Test plan - [x] CI passes on this branch (no unexpected file changes from `build-upstream`)
1 parent df79d2d commit c61621a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,16 @@ jobs:
243243
with:
244244
target: ${{ matrix.target }}
245245

246+
- name: Ensure no unexpected file changes after build
247+
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
248+
run: |
249+
if [[ -n "$(git status --porcelain)" ]]; then
250+
echo "::error::Unexpected file changes detected after build"
251+
git status
252+
git diff
253+
exit 1
254+
fi
255+
246256
- name: Check TypeScript types
247257
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
248258
run: pnpm tsgo

0 commit comments

Comments
 (0)