mirror of https://github.com/Wilfred/difftastic/
Merge pull request #194 from hendrikvanantwerpen/check-generated-files-in-ci
Add a CI step that checks whether the generated files are up-to-datea_star_module
commit
cc745b774e
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
if ! git diff-index --quiet HEAD -- {tsx,typescript}/src/; then
|
||||
cat 1>&2 <<EOF
|
||||
Generated files in the working tree are inconsistent with HEAD.
|
||||
Make sure to commit generated files in {tsx,typescript}/src/ when the grammar changes.
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Loading…
Reference in New Issue