ci: check formats

This commit is contained in:
d-yokoi 2019-03-04 00:27:08 +09:00
parent 0ad8fbc6ba
commit 8329e74566
No known key found for this signature in database
GPG key ID: 49EAF81BC6A0D19A
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@ node_js:
matrix:
include:
- node_js: "lts/*"
env: TEST_SUITE=standard
env: TEST_SUITE=format:ci
- node_js: "lts/*"
env: TEST_SUITE=coverage
env:

View file

@ -19,7 +19,8 @@
"coverage-report": "npm run build && npm run nobuild:coverage-report",
"coverage-html": "npm run build && npm run nobuild:coverage-html",
"coverage": "npm run build && npm run nobuild:coverage",
"format": "prettier ts_src/*.ts ts_src/**/*.ts --ignore-path ./.prettierignore --write",
"format": "npm run prettier -- --write",
"format:ci": "npm run prettier -- --check",
"integration": "npm run build && npm run nobuild:integration",
"nobuild:coverage-report": "nyc report --reporter=lcov",
"nobuild:coverage-html": "nyc report --reporter=html",
@ -27,6 +28,7 @@
"nobuild:integration": "mocha --timeout 50000 test/integration/",
"nobuild:unit": "mocha",
"prepare": "npm run build",
"prettier": "prettier ts_src/*.ts ts_src/**/*.ts --ignore-path ./.prettierignore",
"test": "npm run build && npm run nobuild:coverage",
"unit": "npm run build && npm run nobuild:unit"
},