-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
stages.checkThreshold failed #378
Comments
Hi, same problem too! |
Same problem here. |
I also experiencing this, any update about this? @ArtiomTr I even provide low threshold in the workflow file
but seems no effect at all |
UPDATE: |
Hi @devinekadeni! I'm facing the same issue here. can you specify how did you make it work on your side? |
@alisweatworks this is what I did on my workflow file - name: Run test with coverage
run: npm run test:coverage -- --json --outputFile="coverage/coverage-report.json"
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
skip-step: all
annotations: none
coverage-file: coverage/coverage-report.json
base-coverage-file: coverage/coverage-report.json // package.json
...
"scripts": {
"test:coverage": "jest --coverage",
}
... |
@devinekadeni Thanks! I have the same thing only with yarn. My issue is that if I include a threshold in
If my tests pass but don't meet the threshold, the job will fail with exit code 1 but the coverage report won't be generated (like shown here). I wonder what I'm doing wrong. I see this in github logs:
hence the next step which is coverage report wouldn't be triggered |
Describe a bug
I have added a
coverageThreshold
value to 0, but stillstages.checkThreshold
is failingThe text was updated successfully, but these errors were encountered: