![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@godaddy-wordpress/circleci-coverage-github-reporter
Advanced tools
Report Jest/Istanbul coverage statistics from CircleCI to GitHub
Report Jest/Istanbul coverage statistics from CircleCI to GitHub.
Project based on coverage-github-reporter.
A GitHub auth token is required to post a comment on github. I recommend creating a separate "bot" GitHub account with access to your repos.
GH_AUTH_TOKEN
with the new tokenFor subsequent projects:
GH_AUTH_TOKEN
toGH_AUTH_TOKEN
and importTo access artifacts for private repos, a CircleCI API token is required.
CIRCLE_CI_API_TOKEN
with the new tokenAdd to your package.json
:
npm install --save-dev @godaddy-wordpress/circleci-coverage-github-reporter
If you're using Jest, I suggest adding a test script along these lines:
"scripts": {
"test-ci": "jest --ci --silent --coverage"
}
This will generate a coverage in coverage/
Update your .circleci/config.yml
:
general:
artifacts:
- "coverage/lcov-report"
jobs:
build:
steps:
# … other steps (npm/yarn install, lint, etc)
- run:
name: Test
command: npm run test-ci
# Store coverage artifacts so they can be browsed and be diffed by other builds
- store_artifacts:
path: coverage
destination: coverage
- run:
name: Post coverage comment to GitHub
command: npx circleci-coverage-github-reporter
The circleci-coverage-github-reporter
CLI has some options to customize behavior:
Options:
-v, --verbose [true, false] Defaults to true
-b, --branch [value] Base branch to use if not PR (defaults to "master")
-j, --coverage-json [value] Relative path to istanbul coverage JSON (defaults to "coverage/coverage-final.json")
-r, --coverage-root [value] Relative path to coverage html root (for artifact links) (defaults to "coverage/lcov-report")
-h, --help Output usage information
-v, --version Output the version number
FAQs
Report Jest/Istanbul coverage statistics from CircleCI to GitHub
We found that @godaddy-wordpress/circleci-coverage-github-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.