misc: some cleanup

This commit is contained in:
Kat Marchán
2019-11-15 09:59:43 -08:00
parent 3febf27773
commit 9fd849e4b3
3 changed files with 5 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ describe('installer tests', () => {
await io.rmRF(toolDir);
await io.rmRF(tempDir);
} catch {
console.log('Failed to remove test directories');
console.error('Failed to remove test directories');
}
}, 100000);
@@ -88,7 +88,6 @@ describe('installer tests', () => {
expect(fs.readFileSync(path.join(cacheDir, 'nuget'), 'utf8')).toEqual(
`#!/bin/sh\nmono $MONO_OPTIONS ${path.join(cacheDir, 'nuget.exe')} "$@"`
);
// Note: 33261 should be chmod 755
const mode = fs.statSync(path.join(cacheDir, 'nuget')).mode;
expect(mode2Perm(mode)).toEqual({
execute: {

View File

@@ -32,5 +32,7 @@ async function install(spec = 'latest') {
fs.chmodSync(scriptPath, '755');
}
core.addPath(cachePath);
core.setOutput('nuget-version', tool.version);
console.log(`Installed nuget.exe version ${tool.version}`);
}
exports.default = install;

View File

@@ -29,4 +29,6 @@ export default async function install(spec = 'latest') {
fs.chmodSync(scriptPath, '755');
}
core.addPath(cachePath);
core.setOutput('nuget-version', tool.version);
console.log(`Installed nuget.exe version ${tool.version}`);
}