Skip to content

Commit c768a8f

Browse files
committed
Run prettier:check in Github actions workflow
1 parent 3900ef5 commit c768a8f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/workflow.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
- name: Lint
3939
run: npm run lint
4040

41+
- name: Prettier
42+
if: matrix.os == 'ubuntu-latest'
43+
run: npm run prettier:check
44+
4145
- name: Cache Dev
4246
uses: actions/cache@v1
4347
id: cache-dev

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"lint": "eslint . --ext ts --ext js",
2121
"test:update": "ava --update-snapshots",
2222
"test:watch": "ava --watch",
23-
"prettier:check": "prettier --list-different \"src/**/*.{ts,tsx}\"",
23+
"prettier:check": "prettier --check \"src/**/*.{ts,tsx}\"",
2424
"prettier:write": "prettier --write \"src/**/*.{ts,tsx}\""
2525
},
2626
"repository": {

0 commit comments

Comments
 (0)