Skip to content

Commit a560062

Browse files
committed
ensure all changes from bin/lint are commited
1 parent b2aeaa5 commit a560062

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,22 @@ jobs:
3939
- name: StandardJS Check
4040
run: yarn lint
4141

42-
- name: Lint YAML data files
43-
run: yarn lint:yml
42+
- name: Normalize YAML data files
43+
run: bundle exec rails yml:normalize
4444

4545
- name: erb-lint Check
4646
run: bundle exec erblint --lint-all
4747

48+
- name: Fail when generated changes are not checked-in
49+
run: |
50+
git update-index --refresh
51+
if ! git diff-index --quiet HEAD --; then
52+
echo "::error::Uncommitted changes detected! This is likely to be fix by running `bin/lint` locally and committing the changes."
53+
git status
54+
git diff
55+
exit 1
56+
fi
57+
4858
test:
4959
runs-on: ubuntu-latest
5060
env:

0 commit comments

Comments
 (0)