Skip to content

Commit

Permalink
Merge pull request #41 from niveussolutions/develop
Browse files Browse the repository at this point in the history
added codecov
  • Loading branch information
natesh245 authored Sep 1, 2023
2 parents a92c758 + a3fa0f2 commit 6a7fb31
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ jobs:
- run: npm ci
- run: npm run lint
- run: npm test
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage1.xml,./coverage2.xml
# flags: unittests
# name: codecov
# fail_ci_if_error: false
# verbose: true
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules

/coverage

4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
docs/layouts/default.html

.prettierignore
.prettierignore

.gitignore
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"lint-fix": "eslint --fix .",
"format": "prettier --write .",
"npm-publish": "npm publish --access public",
"test": "jest",
"test": "jest --coverage",
"backupAll": "node -e 'import(\"./index.js\").then(async loadedModule => await loadedModule.default())'",
"backupApiProxy": "node -e 'import(\"./lib/api-proxy.js\").then(async loadedModule => await loadedModule.default(process.env.npm_config_all,process.env.npm_config_name,process.env.npm_config_revision))'",
"backupSharedFlow": "node -e 'import(\"./lib/shared-flow.js\").then(async loadedModule => await loadedModule.default(process.env.npm_config_all,process.env.npm_config_name,process.env.npm_config_revision))'",
Expand Down Expand Up @@ -61,6 +61,13 @@
"npm test"
]
},
"jest": {
"collectCoverage": true,
"coverageReporters": [
"json",
"html"
]
},
"keywords": [
"apigee x",
"apigee hybrid",
Expand Down

0 comments on commit 6a7fb31

Please sign in to comment.