mirror of
https://github.com/yeslayla/run-gut-tests-action.git
synced 2025-02-23 20:23:55 +01:00
Test error checking
This commit is contained in:
parent
02d7c2f145
commit
f5803293ea
16
dist/index.js
vendored
16
dist/index.js
vendored
@ -12179,7 +12179,8 @@ function plural(ms, msAbs, n, name) {
|
||||
|
||||
const core = __webpack_require__(470);
|
||||
const fs = __webpack_require__(747);
|
||||
const path = __webpack_require__(622)
|
||||
const path = __webpack_require__(622);
|
||||
const stream = __webpack_require__(413);
|
||||
|
||||
// Setup Docker
|
||||
const Docker = __webpack_require__(965);
|
||||
@ -12196,6 +12197,13 @@ try {
|
||||
process.chdir(work_dir);
|
||||
}
|
||||
|
||||
var test_handler = new stream.Writable({
|
||||
write: function(chunk, encoding, next) {
|
||||
console.log("LINE: " + chunk.toString());
|
||||
next();
|
||||
}
|
||||
});
|
||||
|
||||
// Pull docker image for building
|
||||
console.log("Pulling build image...");
|
||||
docker.pull(docker_image, function(err, stream)
|
||||
@ -12206,15 +12214,13 @@ try {
|
||||
// Wait to run build until after pull complete
|
||||
function onFinished(err, output)
|
||||
{
|
||||
console.log("Starting image...")
|
||||
docker.run(docker_image, ['godot', '-d', '-s', '--path', '/project', 'addons/gut/gut_cmdln.gd'], process.stdout,
|
||||
console.log("Starting image...");
|
||||
docker.run(docker_image, ['godot', '-d', '-s', '--path', '/project', 'addons/gut/gut_cmdln.gd'], test_handler,
|
||||
|
||||
// Mount working directory to `/project`
|
||||
{ HostConfig: { Binds: [ process.cwd() + ":/project" ] }},
|
||||
|
||||
function (err, data, container) {
|
||||
|
||||
console.log("DATA: " + String(data[0]))
|
||||
|
||||
if(err)
|
||||
{
|
||||
|
16
main.js
16
main.js
@ -1,6 +1,7 @@
|
||||
const core = require('@actions/core');
|
||||
const fs = require('fs');
|
||||
const path = require('path')
|
||||
const path = require('path');
|
||||
const stream = require('stream');
|
||||
|
||||
// Setup Docker
|
||||
const Docker = require('dockerode');
|
||||
@ -17,6 +18,13 @@ try {
|
||||
process.chdir(work_dir);
|
||||
}
|
||||
|
||||
var test_handler = new stream.Writable({
|
||||
write: function(chunk, encoding, next) {
|
||||
console.log("LINE: " + chunk.toString());
|
||||
next();
|
||||
}
|
||||
});
|
||||
|
||||
// Pull docker image for building
|
||||
console.log("Pulling build image...");
|
||||
docker.pull(docker_image, function(err, stream)
|
||||
@ -27,15 +35,13 @@ try {
|
||||
// Wait to run build until after pull complete
|
||||
function onFinished(err, output)
|
||||
{
|
||||
console.log("Starting image...")
|
||||
docker.run(docker_image, ['godot', '-d', '-s', '--path', '/project', 'addons/gut/gut_cmdln.gd'], process.stdout,
|
||||
console.log("Starting image...");
|
||||
docker.run(docker_image, ['godot', '-d', '-s', '--path', '/project', 'addons/gut/gut_cmdln.gd'], test_handler,
|
||||
|
||||
// Mount working directory to `/project`
|
||||
{ HostConfig: { Binds: [ process.cwd() + ":/project" ] }},
|
||||
|
||||
function (err, data, container) {
|
||||
|
||||
console.log("DATA: " + String(data[0]))
|
||||
|
||||
if(err)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user