Suggestion: provide info on setting --max_old_space_size
Closed this issue · 3 comments
arcuri82 commented
Hi,
thx for this action.
Recently, it started to fail due to:
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I have thousands of tests...
the solution was to use max_old_space_size
, eg, currently I am using:
- name: Publish Test Report
if: success() || failure()
uses: mikepenz/action-junit-report@v4
env:
NODE_OPTIONS: "--max_old_space_size=4096"
with:
report_paths: '**/target/surefire-reports/TEST-*.xml'
maybe something worthy to mention in the documentation, in case other users end up in the same problem.
This is base on this discussion.
mikepenz commented
arcuri82 commented
Hi @mikepenz
you are right, indeed it was there. But, as by default it is collapsed, I missed when "quickly" scan through the docs. Didn't realize could click on those arrows to expand the text...
mikepenz commented
No worries. I hope with the update if the readme it's easier to find 👍