Skip to content

Commit 9144555

Browse files
Check code formatting on CI
1 parent 6ee3657 commit 9144555

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ jobs:
3434
run: |
3535
# Check if diff is empty
3636
git diff --exit-code --stat ${{ github.sha }} -- lib/
37+
- name: Check format
38+
run: npm run test:format
3739
- name: Check for lint issues
3840
run: npm run lint

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"test:readable-stream-only": "node readable-stream-test/runner-prepare.mjs",
4343
"coverage": "c8 -c ./c8.json tap --rcfile=./tap.yml test/parallel/test-*.js test/ours/test-*.js",
4444
"format": "prettier -w src lib test",
45+
"test:format": "prettier -c src lib test",
4546
"lint": "eslint src"
4647
},
4748
"dependencies": {

0 commit comments

Comments
 (0)