Skip to content

Commit ee5e77d

Browse files
committedOct 25, 2019
feat: ensure that docs are up-to-date in CI
1 parent 4f93fc8 commit ee5e77d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_js:
33
- "8"
44
- "10"
55
- "12"
6+
script: npm run ci

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
},
3737
"scripts": {
3838
"lint": "eslint src/ test/ *.js",
39-
"test": "npm run lint && mocha --require esm --reporter spec --check-leaks test/test.js",
39+
"test": "mocha --require esm --reporter spec --check-leaks test/test.js",
40+
"ci": "npm run lint && npm run test && npm run docs:diff",
4041
"md": "runmd --watch --output=README.md README_js.md",
4142
"docs": "( node --version | grep -q 'v12' ) && ( npm run package && runmd --output=README.md README_js.md )",
4243
"docs:diff": "( node --version | grep -vq 'v12' ) || ( npm run docs && git diff --quiet README.md )",

0 commit comments

Comments
 (0)
Please sign in to comment.