From 9229ab800ed64bc2c20cd4b8fa0f192c7aeecfbe Mon Sep 17 00:00:00 2001 From: Enrico Campidoglio Date: Tue, 4 Aug 2020 13:26:38 +0200 Subject: [PATCH] Disables the .NET Core CLI welcome message In order to get a leaner build log. --- __tests__/main.test.ts | 5 +++++ dist/index.js | 1 + src/main.ts | 1 + 3 files changed, 7 insertions(+) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 55aa8a21..3e3beeda 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -24,6 +24,11 @@ describe('When running the action without any input arguments', () => { expect(dotnet.disableTelemetry).toHaveBeenCalled(); }); + test('it should disable the .NET Core CLI welcome message', async () => { + await run(); + expect(dotnet.disableWelcomeMessage).toHaveBeenCalled(); + }); + test('it should install the Cake tool locally', async () => { await run(); expect(dotnet.installLocalCakeTool).toHaveBeenCalled(); diff --git a/dist/index.js b/dist/index.js index da035dc6..382870ff 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1003,6 +1003,7 @@ function run() { const toolsDir = new toolsDirectory_1.ToolsDirectory(); toolsDir.create(); dotnet.disableTelemetry(); + dotnet.disableWelcomeMessage(); yield dotnet.installLocalCakeTool(toolsDir, version); if (bootstrap) { yield cake.bootstrapScript(scriptPath, toolsDir); diff --git a/src/main.ts b/src/main.ts index 904f4013..329fd5a5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -16,6 +16,7 @@ export async function run() { toolsDir.create(); dotnet.disableTelemetry(); + dotnet.disableWelcomeMessage(); await dotnet.installLocalCakeTool(toolsDir, version);