Comments (13)
Fix it #112
from unity-test-runner.
Thank you for your help and patience, I'm 99% sure it's something incorrectly configured, but I'm struggling to debug. I will ask more in discord if I still can't figure it out.
from unity-test-runner.
This literally means that the file is not there in the docker container. Note that only some paths are mounted in the container.
from unity-test-runner.
If not what litefeel proposed, @webbertakken , what's the correct solution to this problem? This is preventing my team from using game-ci, unfortunately. Thanks for your help and for maintaining this awesome project.
Is there a different path we should be storing the file to to make sure the container has access?
from unity-test-runner.
The recommended and documented way is to copy the contents of your license file into the UNITY_LICENSE
variable.
Note that since we've started GameCI, I've not heard any remotely convincing arguments as to why users would need to push around licenses as files. But that doesn't mean it doesn't work. So if you must use a file, then the path obviously has to be one of the paths that is mounted into the container.
We're open for merge requests if you feel test-runner is lacking in a way. However it should not break existing workflows, like the one above does.
from unity-test-runner.
@pixelpax
Now, github action can store multiline strings to GITHUB_ENV, So you can use the UNITY_LICENSE
variable.
like this.
# Set env
- name: Set env UNITY_LICENSE
run: |
echo 'UNITY_LICENSE<<EOF' >> $GITHUB_ENV
cat UnityLicense/${{ matrix.unityVersion }}.ulf >> $GITHUB_ENV
echo '' >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#multiline-strings
from unity-test-runner.
While that would work, this is a workaround that makes setting up your workflow much harder.
We might also be able to help others if one or both of you could explain why the regular way doesn't work for you, and maybe also what didn't work about passing the file and providing a path to that.
from unity-test-runner.
Ah, thank you for your help, both of you! I agree it would it would be preferred to use string file contents froma github secret. Unfortunately when I try to use github secrets they come out as empty strings.
Your point is a good one; I can't come up with a good reason for spending anyone's energy supporting files except for github secrets misbehaving. Even this is resolvable by just putting the file contents in as a multiline string just as well.
from unity-test-runner.
When I've worked with secrets before they usually show up as **** if present
from unity-test-runner.
Note that hundreds of people were successful getting it to work following our documentation at game.ci.
Also note that it's intended behaviour that your secrets don't show up in your logs, they're supposed to show up as ***
.
If you have found an actual bug in GitHub secrets, it would be very important to report this to GitHub.
That said, in my experience secrets have been working perfectly fine all the time.
from unity-test-runner.
@pixelpax did you find out what was wrong?
from unity-test-runner.
I was using an .alf where a .ulf was supposed to go, I believe. Still not sure why gh secrets weren't populating.
from unity-test-runner.
Ok, closing this issue since this doesn't seem to be an issue with Unity Test Runner.
from unity-test-runner.
Related Issues (20)
- Action freezes when Unity Test Framework is not imported to project
- Check Run Appears Under Wrong Workflow Run When Test Runner is Run Twice on the Same Commit
- Package Testing Hangs if Package Being Tested is the Root Directory of the Repository HOT 2
- Feature: Support Windows Runners for Package Testing
- Feature: Support Package Testing for Packages with Dependencies Outside of the Unity Registry HOT 1
- Feature: Add Caching for Package Testing
- Feature: Allow `unityVersion` of `auto` for Package Testing
- Code Coverage does not write any output anywhere HOT 2
- Unity no longer supports manual activation of Personal licenses HOT 2
- Create breaking change that updates rolling version number from 1 to 2
- Inconsistent licence activation HOT 7
- Reasource not Available by Integration HOT 5
- 'Unclassified error occured while trying to activate license.' HOT 9
- cannot access '/github/workspace/CodeCoverage': No such file or directory HOT 5
- v4.1.0 causing activation to fail when using manual offline activation HOT 5
- fullProjectPath is not set when using runAsHostUser
- packageMode workflow doesn't run playmode tests HOT 2
- chmod: cannot access '/github/workspace/CodeCoverage' HOT 1
- Licensing fails inconsistently during test step HOT 1
- Feature: Add support for Nuget dependency resolution when testing packages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-test-runner.