Skip to content

Commit

Permalink
Run prettier:check in Github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
runem committed Jun 13, 2020
1 parent 3900ef5 commit 6f108e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
run: npm ci

- name: Lint
if: matrix.os == 'ubuntu-latest'
run: npm run lint

- name: Prettier
run: npm run prettier:check

- name: Cache Dev
uses: actions/cache@v1
id: cache-dev
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"lint": "eslint . --ext ts --ext js",
"test:update": "ava --update-snapshots",
"test:watch": "ava --watch",
"prettier:check": "prettier --list-different \"src/**/*.{ts,tsx}\"",
"prettier:check": "prettier --check \"src/**/*.{ts,tsx}\"",
"prettier:write": "prettier --write \"src/**/*.{ts,tsx}\""
},
"repository": {
Expand Down

0 comments on commit 6f108e5

Please sign in to comment.