jpb06 / coverage-badges-action Goto Github PK
View Code? Open in Web Editor NEWGithub action generating coverage badges from a coverage json summary
License: MIT License
Github action generating coverage badges from a coverage json summary
License: MIT License
Hi, I'm interested to know if there are any plans to add a feature that allows us to see the change in coverage, comparing coverage in a PR to coverage in the base branch
Hello and thanks for your awesome work on this github action :)!
We are using your action in our pipelines to create coverage badges.
However, the version released yesterday (v1.0.8) does not work in our pipelines.
Running the action produces the following error:
Run jpb06/coverage-badges-action@latest
node:internal/modules/cjs/loader:1051
throw err;
^
Error: Cannot find module '../node_modules/effect-errors/cjs/index.js'
Require stack:
- /home/runner/work/_actions/jpb06/coverage-badges-action/latest/dist/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at /home/runner/work/_actions/jpb06/coverage-badges-action/latest/dist/index.js:1:13693
at /home/runner/work/_actions/jpb06/coverage-badges-action/latest/dist/index.js:1:35
at Object.<anonymous> (/home/runner/work/_actions/jpb06/coverage-badges-action/latest/dist/index.js:1:13948)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/runner/work/_actions/jpb06/coverage-badges-action/latest/dist/index.js'
]
}
Node.js v20.8.1
This is how we integrate the action in our pipeline (shortened):
code-coverage:'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.18'
- run: yarn install --frozen-lockfile
- run: yarn test:coverage
- name: Generating coverage badges
uses: jpb06/[email protected]
with:
coverage-summary-path: ./coverage/coverage-summary.json
branches: main
commit-message: 'chore: update badges for code coverage'
Version 1.0.7 was working fine. Could this also be an issue on our side? Do you need any further information.
Thanks a lot!
What we could do is also generating an average set of badges for all apps/libs. For example, if I have two apps with
55%
and30%
coverage respectively, I'd have an average of42.5%
for the repo. These average badges could be saved atbadges/average/*
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.