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:
parent
1714811bf4
commit
e1c6d43494
@ -7,8 +7,11 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run clean
|
- run: npm run clean
|
||||||
- run: npm run test
|
- run: npm run coverage
|
||||||
|
- run: npm run codacy
|
||||||
- run: npm run clean
|
- run: npm run clean
|
||||||
|
- store_artifacts:
|
||||||
|
path: ./coverage
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
.env
|
.env
|
||||||
node_modules/
|
node_modules/
|
||||||
|
.nyc_output/
|
||||||
|
./coverage/
|
||||||
|
coverage/
|
2066
package-lock.json
generated
2066
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,9 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "node ./clean.js",
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -27,8 +29,10 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/cderche/greenlock-challenge-s3#readme",
|
"homepage": "https://github.com/cderche/greenlock-challenge-s3#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"codacy-coverage": "^3.4.0",
|
||||||
"dotenv": "^8.0.0",
|
"dotenv": "^8.0.0",
|
||||||
"greenlock-challenge-test": "^3.0.2"
|
"greenlock-challenge-test": "^3.0.2",
|
||||||
|
"nyc": "^14.1.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"aws-sdk": "^2.451.0"
|
"aws-sdk": "^2.451.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user