-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
return-license
parameter in build and test jobs (#29)
* Add parameter return-license in build job * Add message * fix logic * feat: change `return-license` default to false * feat: make `return-license` optional in the `test` job Co-authored-by: Eric Ribeiro <[email protected]>
- Loading branch information
1 parent
9e6d361
commit cc81411
Showing
2 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,12 @@ parameters: | |
Specify the test platform to run tests on. | ||
Valid values are "editmode", "playmode" and Unity's target builds. | ||
More information can be found on: https://docs.unity3d.com/Packages/[email protected]/manual/reference-command-line.html | ||
return-license: | ||
type: boolean | ||
default: false | ||
description: | | ||
Whether to return the license used to test the project. | ||
Unity only allows returning professional licenses. | ||
executor: << parameters.executor >> | ||
|
||
|
@@ -61,6 +67,9 @@ steps: | |
step-name: << parameters.step-name >> | ||
test-platform: << parameters.test-platform >> | ||
project-path: << parameters.project-path >> | ||
- return-license: | ||
unity-username-var-name: << parameters.unity-username-var-name >> | ||
unity-password-var-name: << parameters.unity-password-var-name >> | ||
- when: | ||
condition: <<parameters.return-license>> | ||
steps: | ||
- return-license: | ||
unity-username-var-name: << parameters.unity-username-var-name >> | ||
unity-password-var-name: << parameters.unity-password-var-name >> |