From 054ecb574f97aa29ac45a8585df1dafab5ee4109 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sat, 25 Jul 2020 17:17:07 -0400 Subject: [PATCH] Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes Test changes --- dist/index.js | 17 ++++++++++++----- main.js | 17 ++++++++++++----- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/dist/index.js b/dist/index.js index c0a4f5d..53be9d5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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) {} diff --git a/main.js b/main.js index d07c433..9ee20fe 100644 --- a/main.js +++ b/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) {}