Giter Site home page Giter Site logo

Comments (4)

ArtiomTr avatar ArtiomTr commented on June 13, 2024 1

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.

drilonibrahimi avatar drilonibrahimi commented on June 13, 2024 1

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.

drilonibrahimi avatar drilonibrahimi commented on June 13, 2024

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.

lhtdesignde avatar lhtdesignde commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.