unity-test-runner/action.yml

60 lines
2.0 KiB
YAML
Raw Normal View History

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
default: 'auto'
2022-01-17 19:45:35 +00:00
description: 'Version of unity to use for testing the project. Use "auto" to get from your ProjectSettings/ProjectVersion.txt. Required if using Package Mode.'
2020-11-26 08:17:42 +00:00
customImage:
required: false
default: ''
description: 'Specific docker image that should be used for testing the project'
projectPath:
required: false
2021-10-21 04:10:08 +00:00
description: 'Path to the Unity project (or, in package mode, the path to the package directory) to be tested.'
2022-01-01 20:38:47 +00:00
customParameters:
required: false
description: 'Extra parameters to configure the Unity editor run.'
testMode:
required: false
default: 'all'
description: 'The type of tests to be run by the test runner.'
artifactsPath:
required: false
default: 'artifacts'
2020-11-10 17:18:00 +00:00
description: 'Path where test artifacts should be stored.'
useHostNetwork:
required: false
default: false
2022-01-01 20:38:47 +00:00
description: 'Initialises Docker using the host network.'
sshAgent:
required: false
default: ''
2022-01-01 20:38:47 +00:00
description: 'SSH Agent path to forward to the container.'
gitPrivateToken:
required: false
default: ''
2022-01-01 20:38:47 +00:00
description: 'GitHub Private Access Token (PAT) to pull from GitHub.'
githubToken:
2021-02-27 18:13:19 +00:00
required: false
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'
description: 'Name for the check run that is created when a github token is provided.'
2021-10-21 04:10:08 +00:00
packageMode:
required: false
default: false
2022-01-17 18:30:18 +00:00
description: 'Whether the tests are being run for a Unity package instead of a Unity project. NOTE: If this is true, any custom docker image you pass must be compatible with apt-get.'
2019-11-30 15:36:27 +00:00
outputs:
artifactsPath:
description: 'Path where the artifacts are stored'
branding:
icon: 'box'
color: 'gray-dark'
2020-01-29 20:49:35 +00:00
runs:
using: 'node12'
main: 'dist/index.js'