-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
fix: do not test for il2cpp that does not exist in 2019.2 or earlier #65
fix: do not test for il2cpp that does not exist in 2019.2 or earlier #65
Conversation
This PR fixes some tests.
|
Hmm, when the test workflow was triggered via PR, NOTE: Correct output: |
We need to embed the Unity license file in the workflow, like https://github.com/game-ci/unity-test-runner/blob/main/.github/workflows/main.yml#L7 EDIT: For example:
at f893bd3#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88L94-R95 NOTE: The above embed Unity license file will give an error because the machine ID is different. |
Yea you're right. This is because the variable is not exposed for external PRs (or pushes for that matter). I'll read this post about allowing secrets for public PRs tonight and fix it or use your suggested approach. |
@mob-sakai could you please rebase or pull See #66 for the changes. |
0587ad3
to
40e1b66
Compare
Rebased on |
Thanks. |
https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/
This means that merge commits will not be tested even if PR is created that changes
However, "the changed workflow in merge commit" will be not tested, to prevent to run malicious workflows.
|
c0d2fc5
to
40e1b66
Compare
If you hope to test the workflow (test.yml) changes, you need to embed the Unity license file in the workflow. |
Yea that's a limitation of pull_request_target unfortunately. But at least it will work for PRs that don't change the workflow itself. Which I expect would be most of the changes.
Indeed, maybe it's worth doing this. I don't think putting my personal license in the workflow publicly is the right way to go about either. As at any given moment it could be blocked because other people copied it over (which happens a lot as we know from experience). |
There's another risk with running the If any secret is passed into an action that action sets it as an env variable. Even if you use There's very little that can shield against this, once this becomes possible. I'm thinking this might not actually cause a problem in the end because we're running docker build or docker run with specific environment variables and the Dockerfile is not able to grab env variables from outside. Any thoughts? It's important to get it right, because all repos should replicate similar behaviour to get rid of the public personal license. cc: @GabLeRoux @mob-sakai @jonathanperret @davidmfinol @frostebite |
Changes
base
image to testChecklist