mirror of
https://github.com/yeslayla/run-gut-tests-action.git
synced 2025-01-13 12:33:41 +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
17
dist/index.js
vendored
17
dist/index.js
vendored
@ -12204,18 +12204,25 @@ 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!");
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
function onProgress(event) {}
|
||||
|
17
main.js
17
main.js
@ -25,18 +25,25 @@ 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!");
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
function onProgress(event) {}
|
||||
|
Loading…
Reference in New Issue
Block a user