2
0
mirror of https://github.com/cderche/greenlock-challenge-s3 synced 2025-05-10 15:36:33 +00:00

added coverage reporting.

This commit is contained in:
Cyrille 2019-05-09 12:32:22 +01:00
parent 1714811bf4
commit e1c6d43494
4 changed files with 2080 additions and 4 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

3
.gitignore vendored
View File

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

2066
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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