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
Base coverage collection skipped with base coverage file provided #242
Comments
I am also having issues with the latest - name: Jest coverage report
uses: ArtiomTr/jest-coverage-report-action@v2.0.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
coverage-file: ./temp-coverage-results/current/jest.results.json
base-coverage-file: ./temp-coverage-results/target/jest.results.json
threshold: 80
skip-step: all
annotations: failed-tests With Out of curiosity I tried to use I did some research but wasn't able to figure out where the |
The Looks like error occur on this line
The variable |
@ArtiomTr I tried the |
@Raigen, I've added some tweaks & rebuilt the package - could you try it now? |
I tried |
@Raigen I was looking at your I don't understand how this file is created especially because you do check if the file exists. Thank you in advance. |
@venux92 In my base branch I save the report with the cache action and load it in a PR with this:
By now we switched it over to an artifact, but the general idea is the same. |
@Raigen Thanks for the clarification, make sense now, thank you =) |
Describe a bug
The base coverage collection is still beeing skipped although a base coverage file is provided by the configuration. That means no coverage diff is reported on the PR comment.
My Bugfix from #239 was supposed to fix this issue but it does not seem to work.
I would look into it myself, but I do not have the time right now. If this is not picked up until next week I will come back to it myself.
Expected behavior
Base coverage is collected from the provided coverage file and coverage diff percentage is shown in the PR comment.
Also the branch should remain unchanged. We know it was working before when branches where switched, but that should be unnecessary and can cause other errors (see #236)
Details
Action version: 2.0.4
OS, where your action is running (windows, linux): linux
action.yml file
Screenshots
Additional context
Log output
The text was updated successfully, but these errors were encountered: