Skip to content

Commit e9a1b4c

Browse files
committed
ci: print generated files not up-to-date
1 parent 8562812 commit e9a1b4c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 3 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-
# 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
57+
- name: check generated files are up-to-date
58+
run: |
59+
git add .
60+
git diff --cached
61+
# if this fails, the files committed don't match what should have been generated
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)