mirror of
https://github.com/NuGet/setup-nuget.git
synced 2025-12-06 07:48:23 +08:00
misc: some cleanup
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user