Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a failed: npx coverage-percentage #6

Open
bratorimatori opened this issue Jul 6, 2020 · 1 comment
Open

I have a failed: npx coverage-percentage #6

bratorimatori opened this issue Jul 6, 2020 · 1 comment

Comments

@bratorimatori
Copy link

Not sure what seams to be the problem here.
I added the CI job as instructed but it fails.

This is my job:

name: JestCodeCoverage
on: push

jobs:
  codecoverage:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Run install
        run: npm install
      - name: Jest Code Coverage Action
        uses: ziishaned/jest-reporter-action@v0.0.1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          test-command: npm run test:coverage

What I get is very strange error that I can make since off. File get generated when I run my commande locally so I am not really sure why can't it find it.

Command failed: npx coverage-percentage ./coverage/lcov.info --lcov
npx: installed 2 in 1.485s
ENOENT: no such file or directory, open './coverage/lcov.info'
@MishaKav
Copy link

I find the solution in a similar package
https://github.com/marketplace/actions/jest-coverage-comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants