Skip to content

Commit da1da33

Browse files
committed
test: Fail CI if prettier wasn't run
1 parent 13efbb3 commit da1da33

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/validate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
with:
3939
useLockFile: false
4040

41+
# TODO: Can be removed if https://github.com/kentcdodds/kcd-scripts/pull/146 is released
42+
- name: Verify format (`npm run format` committed?)
43+
run: npm run format -- --check
44+
4145
- name: ▶️ Run validate script
4246
run: npm run validate
4347

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"scripts": {
2727
"build": "kcd-scripts build --no-ts-defs --ignore \"**/__tests__/**,**/__node_tests__/**,**/__mocks__/**\" && kcd-scripts build --no-ts-defs --bundle --no-clean",
28+
"format": "kcd-scripts format",
2829
"lint": "kcd-scripts lint",
2930
"setup": "npm install && npm run validate -s",
3031
"test": "kcd-scripts test",

0 commit comments

Comments
 (0)