game-ci / unity-test-runner

Run tests for any Unity project
https://github.com/marketplace/actions/unity-test-runner
MIT License
210 stars 135 forks source link

BUG: Test-runner actions fails with a "chmod: cannot access '/github/workspace/CodeCoverage': No such file or directory" error #218

Open SimonDarksideJ opened 1 year ago

SimonDarksideJ commented 1 year ago

Bug description

Test-runner actions fails with a "chmod: cannot access '/github/workspace/CodeCoverage': No such file or directory" error.

*Note, there were no actual tests in the project but this should not prevent the action from completing successfully.

How to reproduce

Visit public repo and examine setup, replicate for test: https://github.com/SimonDarksideJ/TheMostAwesomeGameEverMade/actions/runs/4566129759

The action should complete successfully?

Additional details

Output from end of log

Run succeeded, no failures occurred

###########################
#    COMBINE_RESULTS Results    #
###########################

chmod: cannot access '/github/workspace/CodeCoverage': No such file or directory
Changing to "/github/workspace/_activate-license" directory.
/github/workspace/_activate-license /github/workspace
/github/workspace

###########################
#         Failure         #
###########################

Please note that the exit code is not very descriptive.
Most likely it will not help you solve the issue.

To find the reason for failure: please search for errors in the log above.

Error: The process '/usr/bin/docker' failed with exit code 139
SmailikHappy commented 1 year ago

Ping pong. Is there any update on this issue? I am facing with the same error as well.

webbertakken commented 1 year ago

Recommended workaround: add tests to your project.

We're happy to take PRs that fix the chmod task, so that it only runs if the folder exists.

QuakeEye commented 8 months ago

Next to adding tests, also make sure the Code Coverage package is added to your unity project! That missing was what was causing the error for me.