-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Make action work on all OS #19
Comments
That is a good question. So I think the only alternative to a container action would be the Composite run steps. That should work on Linux, MacOS, Windows. Do you agree? I presume you can mix operating systems and self-hosted with GitHub-hosted jobs in the same workflow. For the time being, you could then run your tests on your self-hosted MacOS runners and upload the test result files as artifacts. In a separate job in the same workflow you can then publish the unit test results using a GitHub-hosted Linux based job:
Is that an option for you? |
Thanks for the reply! I think that is a decent alternative for the time being. Since you marked this with a |
I'll try the 'composite run steps' action. I don't see why this shouldn't work. And you are right, having this run on multiple OS would be great. |
Hi, I have turned this action into a "composite run steps action". Please give it a try:
You need to add a python step before this action:
|
@joshrlesch have you had a chance to try the "composite run steps action" on MacOS? |
I kinda have. I tried it quick, but ran into python environment errors on our Macs. I wasn't able to look into it much further, but still plan on getting to this sometime. |
Do you run this on a public github? Then I could look into the action's output. |
Nope, this is a private company repo. Hopefully I can get to this later this week. |
Alright. Did you see that you need to add a Python step before this action now? See https://github.com/EnricoMi/publish-unit-test-result-action/tree/branch-composite-action#using-this-action. |
I'd be interested in running this on
but got the following error:
Were you expecting it to work on |
You can test the action from this branch:
Be reminded this is just a development branch. |
@joshrlesch I have tested the composite action on Mac OS X (10.15.7) and it works. |
@EnricoMi Tested fine for me on |
@EnricoMi The |
@joshrlesch @jonathanmedd @wildmichael This action is not available as a composite action from - name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@master
if: always()
with:
files: test-results/**/*.xml Note that This will be released soon and will be available via |
@EnricoMi Tried it on
You can see the full action run here if it helps: https://github.com/jonathanmedd/BricksetModule/runs/2323106971?check_suite_focus=true |
@jonathanmedd thanks for testing this. Looks like your
|
Tried both:
So all is now good, thanks! |
Looks like Python prefers forward slashes on all OS and can translate it as required. Nice! This proves my README right :-) Thanks for confirming it works for you. |
Nice work adding Windows and Mac support. I was using |
@WimLeflere thanks for testing! |
This has been released, so it is available now as documented in the README.md via
Thanks for the patience. |
running on a windows selfhosted machine, getting this error:- Run EnricoMi/publish-unit-test-result-action/composite@v1 /bin/bash: C:actions-runner_work_temp816f90e7-306e-4145-a6a6-e890e998056b.sh: No such file or directory |
@jozza3000 Please see #211. |
This action is only supported on Linux since its container based. Is it possible to support multiple OS for use with
self-hosted
runners like internal Macs.The text was updated successfully, but these errors were encountered: