Skip to content

Commit 8562812

Browse files
committed
ci: verify committed generated files are up-to-date
1 parent eea4c37 commit 8562812

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
run: cd xtask && cargo build
5555
- name: xtask generate
5656
run: cargo xtask generate ${{ matrix.integration }}
57+
# if this fails, the files committed don't match what should have been generated
58+
- name: generated files are up-to-date
59+
run: git add . && git diff --quiet && git diff --cached --quiet
5760
# no --locked, templates need to generate their lockfile
5861
- name: cargo fetch
5962
run: cargo xtask generate ${{ matrix.integration }} -x "cargo fetch --target $TARGET"

0 commit comments

Comments
 (0)