Skip to content

Commit e6a65a5

Browse files
committed
ci: print generated files not up-to-date
1 parent b6f6692 commit e6a65a5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ jobs:
5454
run: cd xtask && cargo build
5555
- name: xtask generate
5656
run: cargo xtask generate ${{ matrix.integration }}
57+
- name: check generated files are up-to-date
58+
run: |
59+
git add .
60+
git diff --cached
5761
# 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
62+
git diff --quiet && git diff --cached --quiet
6063
# no --locked, templates need to generate their lockfile
6164
- name: cargo fetch
6265
run: cargo xtask generate ${{ matrix.integration }} -x "cargo fetch --target $TARGET"

0 commit comments

Comments
 (0)