Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,13 @@ jobs:
fi
- run: mise r build
- run: mise r test
- run: mise r render
- name: assert render produces no diff
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "::error::'mise run render' produced changes. Run it locally and commit."
git status
git diff
Comment on lines +43 to +44
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 git diff only shows changes to already-tracked files. If mise r render generates a brand-new file that was never committed, git status --porcelain will correctly fail the check, but the developer won't see the new file's content in the error output — only a ?? path/to/file line from git status. Consider also listing untracked file content so the error output is self-contained.

Suggested change
git status
git diff
git status
git diff
git ls-files --others --exclude-standard | xargs -r -I{} sh -c 'echo "=== new file: {} ===" && cat "{}"'

Fix in Claude Code

exit 1
fi
- run: mise r lint