Merge pull request #2 from cderche/code-coverage

Code coverage
This commit is contained in:
cyrille 2019-05-09 10:16:40 +01:00 committed by GitHub
commit 9d1ca2aafb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2023 additions and 5 deletions

View File

@ -7,8 +7,11 @@ jobs:
- checkout
- run: npm install
- run: npm run clean
- run: npm run test
- run: npm run coverage
- run: npm run codacy
- run: npm run clean
- store_artifacts:
path: ./coverage
workflows:
version: 2

5
.gitignore vendored
View File

@ -1,2 +1,5 @@
.env
node_modules/
node_modules/
.nyc_output/
./coverage/
coverage/

2008
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,9 @@
"main": "index.js",
"scripts": {
"test": "node ./test.js",
"clean": "node ./clean.js"
"clean": "node ./clean.js",
"coverage": "nyc --reporter=lcovonly --report-dir=./coverage npm run test",
"codacy": "cat ./coverage/lcov.info | codacy-coverage && rm -rf ./coverage"
},
"repository": {
"type": "git",
@ -28,10 +30,12 @@
"homepage": "https://github.com/cderche/greenlock-storage-s3#readme",
"dependencies": {
"aws-sdk": "^2.451.0",
"bluebird": "^3.5.4"
"bluebird": "^3.5.4",
"codacy-coverage": "^3.4.0"
},
"devDependencies": {
"dotenv": "^8.0.0",
"greenlock-store-test": "^3.0.2"
"greenlock-store-test": "^3.0.2",
"nyc": "^14.1.0"
}
}