Skip to content

Commit

Permalink
Use npm-run-all to run test and lint scripts (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Nov 12, 2021
1 parent 20d61e7 commit 70ae05a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
node-version: 16
- run: npm install
- run: npx xo
- run: npm run lint
# Force update snapshots, https://github.com/avajs/ava/discussions/2754
- run: npx nyc ava --update-snapshots
env:
Expand Down
10 changes: 9 additions & 1 deletion package.json
Expand Up @@ -14,7 +14,14 @@
"node": ">=12"
},
"scripts": {
"test": "xo && nyc ava && markdownlint '**/*.md'",
"fix": "run-p --continue-on-error fix:*",
"fix:js": "npm run lint:js -- --fix",
"fix:md": "npm run lint:md -- --fix",
"lint": "run-p --continue-on-error lint:*",
"lint:js": "xo",
"lint:md": "markdownlint \"**/*.md\"",
"test": "npm-run-all --continue-on-error lint test:*",
"test:js": "nyc ava",
"create-rule": "node ./scripts/create-rule.mjs && npm run generate-rules-table && npm run generate-usage-example",
"run-rules-on-codebase": "node ./test/run-rules-on-codebase/lint.mjs",
"integration": "node ./test/integration/test.mjs",
Expand Down Expand Up @@ -73,6 +80,7 @@
"lodash-es": "4.17.21",
"markdownlint-cli": "^0.29.0",
"mem": "^9.0.1",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"outdent": "^0.8.0",
"typescript": "^4.4.2",
Expand Down

0 comments on commit 70ae05a

Please sign in to comment.