Skip to content

Commit

Permalink
feat: ensure that docs are up-to-date in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ctavan committed Oct 25, 2019
1 parent 4f93fc8 commit ee5e77d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_js:
- "8"
- "10"
- "12"
script: npm run ci
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
},
"scripts": {
"lint": "eslint src/ test/ *.js",
"test": "npm run lint && mocha --require esm --reporter spec --check-leaks test/test.js",
"test": "mocha --require esm --reporter spec --check-leaks test/test.js",
"ci": "npm run lint && npm run test && npm run docs:diff",
"md": "runmd --watch --output=README.md README_js.md",
"docs": "( node --version | grep -q 'v12' ) && ( npm run package && runmd --output=README.md README_js.md )",
"docs:diff": "( node --version | grep -vq 'v12' ) || ( npm run docs && git diff --quiet README.md )",
Expand Down

0 comments on commit ee5e77d

Please sign in to comment.