Skip to content

Commit

Permalink
Validate code style in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Apr 1, 2024
1 parent 1e56202 commit 553f0df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run prettier
- run: npm run test-style
continue-on-error: true
- run: npm run test-types
continue-on-error: true
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
},
"scripts": {
"prettier": "prettier --write lib test",
"test": "prettier --check lib test && npm run test-types && npm run test-unit",
"test-unit": "mocha --ui tdd test/**/*.js",
"test-types": "tsc -p tsconfig.json"
"test": "npm run test-style && npm run test-types && npm run test-unit",
"test-style": "prettier --check lib test",
"test-types": "tsc -p tsconfig.json",
"test-unit": "mocha --ui tdd test/**/*.js"
},
"files": [
"lib",
Expand Down

0 comments on commit 553f0df

Please sign in to comment.