Comments (4)
Hello @drilonibrahimi 👋,
Looks like this is an issue with npm. Maybe it is related to the old npm version, can you please try to bump the NodeJS version (or just npm), like so:
steps:
- name: Checkout this repo
uses: actions/checkout@v3
- name: Setup NodeJS 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup npm 9.6.5
run: corepack enable && corepack prepare [email protected] --activate
- name: Generate coverage report
uses: artiomtr/jest-coverage-report-action@v2
with:
github-token: *
If it doesn't work, you can try to apply the fixes described here.
from jest-coverage-report-action.
Okay, that worked but I found out that I can skip the install step and the coverage report generation since I already did that on a previous job, nonetheless thanks for your response. I'm using this action only for reporting the coverage to the Pull Request
For anyone who might need this.
- name: Generate coverage report
uses: artiomtr/[email protected]
with:
github-token: *
skip-step: all
coverage-file: report.json
base-coverage-file: report.json
from jest-coverage-report-action.
Update 1)
13 mins with no response, I had to cancel the job since either way we can't have this take any longer than 1-2 mins.
from jest-coverage-report-action.
Okay, that worked but I found out that I can skip the install step and the coverage report generation since I already did that on a previous job, nonetheless thanks for your response. I'm using this action only for reporting the coverage to the Pull Request
For anyone who might need this.
- name: Generate coverage report uses: artiomtr/[email protected] with: github-token: * skip-step: all coverage-file: report.json base-coverage-file: report.json
@drilonibrahimi This issue is closed but I just wanted to add that this worked great! I generate the report before as well via yarn coverage
and then just execute the posted settings. I had a lot of errors in regards to installing npm packages since I use private packages and then it would still try to install them although i was skipping the step. Now this works. Thanks for this!
from jest-coverage-report-action.
Related Issues (20)
- opt-out of comparison doesn't work well HOT 1
- stages.checkThreshold failed
- stages.checkThreshold failed HOT 8
- False-positive fail check HOT 1
- ability to customize comment title HOT 5
- Update to v3 failed with Error: iconType must be one of the following values: emoji, ascii, unicode HOT 5
- Reject pull request if coverage goes down HOT 1
- Generating report failed with TypeError: Cannot convert undefined or null to object HOT 3
- Annotations do not change from failed to passed when a commit is pushed HOT 2
- `publishReport` stage fails if the generated Github comment is too long HOT 1
- Cannot checkout branch from private fork
- Error: Coverage output file not found. (file "report.json" not found) HOT 1
- Override automatically added arguments to test-script HOT 1
- Empty coverage report annotations when all tests pass
- Add Bun package manager support
- Updated information hierarchy in github comment HOT 1
- HttpError: Body is too long (maximum is 65536 characters) HOT 5
- Unchanged files with check annotations (beta) HOT 2
- double hyphen not working for pnpm version >=7 HOT 2
- Permissions can be set in a more convienent way.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest-coverage-report-action.