-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add Feature to test Unity Packages #164
Conversation
@davidmfinol @webbertakken Sorry for the ping, but I need your input on the questions at the bottom. This is just about ready for review now - I've caught it up with the latest changes and updated the documentation in a couple of spots, as well as adding a check in the script which throws an error if it can't find the Here are the list of caveats/limitations of the feature as it stands right now:
I just have a couple questions that I need answered in order to finish up now:
Thank you so much to the maintainers. Again, I apologize this has taken so long, and I really appreciate your patience and assistance throughout this whole process. |
Just heading out but I can answer quickly now:
# `~/.gitconfig
# ...
[core]
eol = native
autocrlf = input
# ... |
Alright - I've finished up all the documenting that I can think of, and filled out a PR for documentation of this feature in the documentation repo. I'll need some input on that PR from the maintainers - I left it in draft status since I couldn't get the documentation repo to build locally for some reason, but I've made all the changes I intended to, so it's only in draft status out of formality given the contribution guidelines. But great news - this PR is ready for review again! 🚀 @davidmfinol Tagging you for visibility since I wasn't able to re-request your review - sorry if that wasn't necessary! |
@@ -0,0 +1,11 @@ | |||
{ | |||
"name": "fake.notarealpackage.RuntimeTests", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer example.com
or com.example
instead of using actual website names.
That domain is meant for such uses specifically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, good call! I've addressed this in my most recent commit - the package is now called com.example.testpackage
.
It has ~40 changes, but that's mainly just because I renamed the folder for the package to the new package name. The key changes are:
- Renamed the package folder itself
- Updated the package.json with the new package name & updated the info in it to better match the new name
- Updated all the assembly definitions to match the new name
- Updated the
main.yml
tests to point at the new package name
If that was the only note, then I have nothing else to add 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Looks good to me.
Probably good if some of @davidmfinol, @AndrewKahr, @frostebite, @GabLeRoux, @lazerwalker could have a look. And then hopefully we can release it soon :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a journey! I just caught up with the history on this one. I don't see any major issues with the limitations, jq
is a pretty common requirement, using only Linux runners for the time-being seems fine for a initial release of a new feature.
Seems like there have already been several users who have used the fork successfully with all issues reported already having been addressed.
Great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM!
Really really amazing work, I know this feature has been talked about a lot and so finally getting support for it will be a huge step forward!
Again awesome work!
This was a year ago, but Unity's latest stunt almost makes it seem like you saw the future! |
Enabling packageMode as told in game-ci/unity-test-runner#164
Changes
packageMode
, which isfalse
by default. Iftrue
, then the action tests a Unity Package rather than a Unity Projectjq
is used, which means that any docker image used to run the action in package mode must be havejq
installedmain.yml
to test the action's usage on the package.Areas for Improvement
Here's some clear areas for improvement with the feature that I haven't yet implemented. If needed, I will try implementing these before the PR is merged, but if not, then I'll fill out a new issue for these improvements.
auto
shouldn't be too hard to implement - I'm fairly sure it can just be taken from the package'spackage.json
. The main reason it's not part of this PR is just because I was focusing on getting eyes on the MVP first.Checklist