mirror of
https://github.com/yeslayla/run-gut-tests-action.git
synced 2025-01-14 04:53:40 +01:00
Test changes
Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes
This commit is contained in:
parent
8f3b8cf989
commit
054ecb574f
15
dist/index.js
vendored
15
dist/index.js
vendored
@ -12204,16 +12204,23 @@ try {
|
||||
function onFinished(err, output)
|
||||
{
|
||||
console.log("Starting image...")
|
||||
docker.run(docker_image, ['godot', '-d', '-s', '--path /builder', 'addons/gut/gut_cmdln.gd'], process.stdout,
|
||||
docker.run(docker_image, ['godot', '-d', '-s', '--path', '/project', 'addons/gut/gut_cmdln.gd'], process.stdout,
|
||||
|
||||
// Mount working directory to `/builder`
|
||||
{ HostConfig: { Binds: [ process.cwd() + ":/builder" ] }},
|
||||
// Mount working directory to `/project`
|
||||
{ HostConfig: { Binds: [ process.cwd() + ":/project" ] }},
|
||||
|
||||
function (err, data, container) {
|
||||
|
||||
if(err)
|
||||
{
|
||||
console.log(err);
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
||||
console.log("Tests exited with status: " + data.StatusCode);
|
||||
|
||||
if( data.StatusCode != "0" )
|
||||
{
|
||||
core.setFailed("GUT tests failed!");
|
||||
}
|
||||
|
||||
})
|
||||
|
15
main.js
15
main.js
@ -25,16 +25,23 @@ try {
|
||||
function onFinished(err, output)
|
||||
{
|
||||
console.log("Starting image...")
|
||||
docker.run(docker_image, ['godot', '-d', '-s', '--path /builder', 'addons/gut/gut_cmdln.gd'], process.stdout,
|
||||
docker.run(docker_image, ['godot', '-d', '-s', '--path', '/project', 'addons/gut/gut_cmdln.gd'], process.stdout,
|
||||
|
||||
// Mount working directory to `/builder`
|
||||
{ HostConfig: { Binds: [ process.cwd() + ":/builder" ] }},
|
||||
// Mount working directory to `/project`
|
||||
{ HostConfig: { Binds: [ process.cwd() + ":/project" ] }},
|
||||
|
||||
function (err, data, container) {
|
||||
|
||||
if(err)
|
||||
{
|
||||
console.log(err);
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
||||
console.log("Tests exited with status: " + data.StatusCode);
|
||||
|
||||
if( data.StatusCode != "0" )
|
||||
{
|
||||
core.setFailed("GUT tests failed!");
|
||||
}
|
||||
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user