Run tests for any Unity project
 
 
 
 
 
Go to file
Aaron Trudeau 7787abf249
Add Feature to test Unity Packages (#164)
* (should fail) add jq install to docker image

* (might fail) remove rm rf call

* move things around to try to fix test

* Revert "(might fail) remove rm rf call"

This reverts commit 22f74ebca7.

* remove silent setting from docker test

* Fix failing test's Docker image

* Add new input and basic test

* Add test package; start using jq cli

* Use test package in test workflow

* Create temporary Unity Project and run tests

* Test removing jq install from Dockerfile

* Revert "Test removing jq install from Dockerfile"

This reverts commit 6aa7a6f443.

* Remove mkdir call

* remove duplicate command

* add packageMode option back in

* build changes

* check for apt-get before installing jq

* change apt-get version check message

* spelling and documentation fixes

* add working example unity package with tests

* add temp pwd call to help figure out absolute pathing

* fix workflow package location

* add jq to add package to temp project packages

* try fixing jq calls

* clean up jq calls, fix variable expansion

* try renaming jq args

* try using different arg syntax for jq

* try wrapping args in parentheses

* try using double quotes only

* try changing up quoting

* try properly using string interpolation

* try removing colon

* add string interpolation to key

* omit double quotes from jq call to retrieve package name

* clean up logging

* add rest of workflow tests

* Revert "add rest of workflow tests"

This reverts commit c0bb008b2c.

* add play mode test without cache

* add package mode all mode workflow step

* add consecutive ppackage mode workflow step

* add package mode "like in the readme" test

* fix workflow syntax error

* try to fix syntax error again

* use correct folder

* *hopefully actually* use correct package path

* try adding caching to "readme" test

* remove caching/mentions of caching from package mode tests

* fix artifacts paths

* fix artifacts pathing and names

* fix combined artifacts for package mode

* clean up documentation and exit code

* clarify allowed docker images for packageMode

* update README to mention Unity packages

* move package name validation to TS part of action

* improve logging for temp project creation failure

* make husky hook executable

* add error for missing tests folder

* update docs to reflect unsupported packages

* remove jq install

* Revert "remove jq install"

This reverts commit bd35ac8f6f.

* TEMP log image in use

* Revert "TEMP log image in use"

This reverts commit 95722dcab4.

* Revert "Revert "remove jq install""

This reverts commit e3bac048b1.

* TEMP list installed packages

* Revert "TEMP list installed packages"

This reverts commit db9c07da38.

* TEMP log project's manifest

* add code coverage package to generated project

* remove temp project manifest log

* add coverage to package mode tests

* update name of package coverage steps

* add codecoverage dependency to test package

* Revert "add codecoverage dependency to test package"

This reverts commit 4b2c03069d.

* add assembly filters for coverage

* TEMP console log project folder

* Revert "TEMP console log project folder"

This reverts commit 411ec51817.

* add logic to copy package to folder without activation file

* fix false positive activation file detection

* fix improper bash "if" formatting

* TEMP remove conditional for package copying

* Revert "TEMP remove conditional for package copying"

This reverts commit 4f12d83889.

* Revert "fix improper bash "if" formatting"

This reverts commit acb975bcea.

* Revert "fix false positive activation file detection"

This reverts commit 580c9c14a0.

* Revert "add logic to copy package to folder without activation file"

This reverts commit b20d994b5d.

* run yarn build

* move package mode check lower in the file

* throw error if unity version is auto in package mode

* fix unity version error wording

* try deleting activate license file

* try logging hidden package files

* try deleting all non-package files

* fix license activation files deletion

* scrap file removals and print dir permissions

* log permissions for package folder

* Add packageMode inputs to main

* fix fs mocks and run yarn build

* fix documentation and add error message for missing jq

* add clarification on package mode caveats

* fix line endings problem (?)

* Revert "fix line endings problem (?)"

This reverts commit 1cba302bc4.

* Revert "add clarification on package mode caveats"

This reverts commit fb62d36ba1.

* Revert "fix documentation and add error message for missing jq"

This reverts commit 0df3ab6b88.

* Redo the input docs fixes

* Redo the jq presence test

* update readme to indicate package mode caveats

* fix wording on coverageOptions

* one more wording fix on coverageOptions

* move sample package to example.com domain

---------

Co-authored-by: Aaron Trudeau <120415438+trudeaua-vividream-software@users.noreply.github.com>
2023-07-03 17:09:20 +02:00
.github Add Feature to test Unity Packages (#164) 2023-07-03 17:09:20 +02:00
.husky Add Feature to test Unity Packages (#164) 2023-07-03 17:09:20 +02:00
artifacts Small results-check refactor for debugging (#104) 2021-03-06 00:55:03 -06:00
dist Add Feature to test Unity Packages (#164) 2023-07-03 17:09:20 +02:00
media remove anything recognizable as Unity (#82) 2020-12-06 17:45:57 +01:00
src Add Feature to test Unity Packages (#164) 2023-07-03 17:09:20 +02:00
unity-package-with-correct-tests/com.example.testpackage Add Feature to test Unity Packages (#164) 2023-07-03 17:09:20 +02:00
unity-project-with-correct-tests Add standalone testmode support (#219) 2023-04-20 22:23:15 -05:00
.dockerignore Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
.editorconfig Add meta files 2020-01-31 01:15:59 +01:00
.eslintignore Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
.eslintrc.json Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
.gitattributes Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
.gitignore Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
.prettierignore Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
.prettierrc.json Dependency bump (#88) 2021-01-11 01:05:18 +01:00
.yarnrc Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
CODE_OF_CONDUCT.md Add meta files 2020-01-31 01:15:59 +01:00
CONTRIBUTING.md add private github package support using personal access token (#152) 2021-11-03 10:25:06 +01:00
LICENSE Add license (MIT) 2019-11-30 15:47:07 +01:00
README.md Add Feature to test Unity Packages (#164) 2023-07-03 17:09:20 +02:00
action.yml Add Feature to test Unity Packages (#164) 2023-07-03 17:09:20 +02:00
jest.config.js Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
package.json fix: broken lints (#199) 2022-11-03 18:27:46 -05:00
tsconfig.json Refactor to typescript (#158) 2022-01-11 05:52:29 -06:00
yarn.lock Add standalone testmode support (#219) 2023-04-20 22:23:15 -05:00

README.md

Unity - Test runner

(Not affiliated with Unity Technologies)

GitHub Action to run tests for any Unity project and some Unity packages.

Part of the GameCI open source project.

Actions status

How to use

Find the docs on the GameCI documentation website.

Visit the GameCI Unity Actions status repository for related Actions.

Community

Feel free to join us on Discord and engage with the community.

Contributing

To help improve the documentation, please find the docs repository.

To contribute to this project, kindly read the contribution guide.

Support us

GameCI is free for everyone forever.

You can support us at OpenCollective.

Licence

This repository is MIT licensed.

This includes all contributions from the community.