2019-11-30 15:36:27 +00:00
|
|
|
name: 'Unity - Test runner'
|
|
|
|
author: Webber Takken <webber@takken.io>
|
|
|
|
description: 'Run tests for any Unity project.'
|
2020-01-29 20:49:35 +00:00
|
|
|
inputs:
|
|
|
|
unityVersion:
|
|
|
|
required: false
|
2020-12-28 11:02:31 +00:00
|
|
|
default: 'auto'
|
|
|
|
description: 'Version of unity to use for testing the project. Use "auto" to get from your ProjectSettings/ProjectVersion.txt'
|
2020-11-26 08:17:42 +00:00
|
|
|
customImage:
|
|
|
|
required: false
|
|
|
|
default: ''
|
2020-11-26 12:22:15 +00:00
|
|
|
description: 'Specific docker image that should be used for testing the project'
|
2020-11-10 17:02:23 +00:00
|
|
|
projectPath:
|
|
|
|
required: false
|
|
|
|
description: 'Path to the Unity project to be tested.'
|
2022-01-01 20:38:47 +00:00
|
|
|
customParameters:
|
|
|
|
required: false
|
|
|
|
description: 'Extra parameters to configure the Unity editor run.'
|
2020-11-10 17:02:23 +00:00
|
|
|
testMode:
|
|
|
|
required: false
|
|
|
|
default: 'all'
|
|
|
|
description: 'The type of tests to be run by the test runner.'
|
2022-04-21 08:50:37 +00:00
|
|
|
coverageOptions:
|
|
|
|
required: false
|
2022-04-21 23:08:44 +00:00
|
|
|
default: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport'
|
2022-04-21 08:50:37 +00:00
|
|
|
description: 'Optional coverage parameters for the -coverageOptions argument.'
|
2020-11-10 17:02:23 +00:00
|
|
|
artifactsPath:
|
|
|
|
required: false
|
|
|
|
default: 'artifacts'
|
2020-11-10 17:18:00 +00:00
|
|
|
description: 'Path where test artifacts should be stored.'
|
2021-08-21 13:06:06 +00:00
|
|
|
useHostNetwork:
|
2020-11-10 17:02:23 +00:00
|
|
|
required: false
|
|
|
|
default: false
|
2022-01-01 20:38:47 +00:00
|
|
|
description: 'Initialises Docker using the host network.'
|
2021-05-28 21:55:58 +00:00
|
|
|
sshAgent:
|
|
|
|
required: false
|
|
|
|
default: ''
|
2022-01-01 20:38:47 +00:00
|
|
|
description: 'SSH Agent path to forward to the container.'
|
2021-11-03 09:25:06 +00:00
|
|
|
gitPrivateToken:
|
|
|
|
required: false
|
|
|
|
default: ''
|
2022-01-01 20:38:47 +00:00
|
|
|
description: 'GitHub Private Access Token (PAT) to pull from GitHub.'
|
2021-02-28 06:44:56 +00:00
|
|
|
githubToken:
|
2021-02-27 18:13:19 +00:00
|
|
|
required: false
|
2021-02-28 06:44:56 +00:00
|
|
|
default: ''
|
|
|
|
description: 'Token to authorize access to the GitHub REST API. If provided, a check run will be created with the test results.'
|
2021-02-27 18:13:19 +00:00
|
|
|
checkName:
|
|
|
|
required: false
|
|
|
|
default: 'Test Results'
|
2021-02-28 06:44:56 +00:00
|
|
|
description: 'Name for the check run that is created when a github token is provided.'
|
2022-06-24 10:59:01 +00:00
|
|
|
chownFilesTo:
|
|
|
|
required: false
|
|
|
|
default: ''
|
|
|
|
description: 'User and optionally group (user or user:group or uid:gid) to give ownership of the resulting build artifacts'
|
2019-11-30 15:36:27 +00:00
|
|
|
outputs:
|
|
|
|
artifactsPath:
|
2022-04-21 08:50:37 +00:00
|
|
|
description: 'Path where the artifacts are stored.'
|
|
|
|
coveragePath:
|
|
|
|
description: 'Path where the code coverage results are stored.'
|
2019-11-30 15:36:27 +00:00
|
|
|
branding:
|
|
|
|
icon: 'box'
|
|
|
|
color: 'gray-dark'
|
2020-01-29 20:49:35 +00:00
|
|
|
runs:
|
2022-10-13 21:19:52 +00:00
|
|
|
using: 'node16'
|
2022-01-11 11:52:29 +00:00
|
|
|
main: 'dist/index.js'
|