зеркало из https://github.com/mozilla/mozjexl.git
Add lint job to CI
This commit is contained in:
Родитель
4da22e0d4e
Коммит
db9de48877
|
@ -27,13 +27,27 @@ jobs:
|
|||
key: dependency-cache-{{ checksum "package.json" }}
|
||||
- run:
|
||||
name: Test
|
||||
command: npm test
|
||||
command: npm run test
|
||||
|
||||
lint:
|
||||
docker:
|
||||
- image: circleci/node:4.8.2
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: dependency-cache-{{ checksum "package.json" }}
|
||||
- run:
|
||||
name: Test
|
||||
command: npm run lint
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build_and_test:
|
||||
build_test_lint:
|
||||
jobs:
|
||||
- build
|
||||
- test:
|
||||
requires:
|
||||
- build
|
||||
- lint:
|
||||
requires:
|
||||
- build
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"test": "istanbul cover _mocha -- -R spec --recursive test",
|
||||
"prepublish": "gulp"
|
||||
"prepublish": "gulp",
|
||||
"lint": "prettier --list-different 'lib/**' 'test/**' gulpfile.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Загрузка…
Ссылка в новой задаче