Added findRubyVersion tests

This commit is contained in:
Derrick Marcey
2019-06-27 14:24:03 -04:00
parent 4fdd5911a6
commit 22cf5cbe54
4 changed files with 64 additions and 7 deletions

View File

@@ -15,6 +15,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const exec = __importStar(require("@actions/exec"));
const tc = __importStar(require("@actions/tool-cache"));
const path = __importStar(require("path"));
@@ -33,6 +34,7 @@ function default_1(version) {
const dest = '/usr/bin/ruby';
exec.exec('sudo ln', ['-sf', path.join(toolPath, 'ruby'), dest]); // replace any existing
}
core.addPath(toolPath);
});
}
exports.default = default_1;