Skip to content

Commit

Permalink
Disables the .NET Core CLI welcome message
Browse files Browse the repository at this point in the history
In order to get a leaner build log.
  • Loading branch information
ecampidoglio committed Aug 4, 2020
1 parent 8d30850 commit 9229ab8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export async function run() {
toolsDir.create();

dotnet.disableTelemetry();
dotnet.disableWelcomeMessage();

await dotnet.installLocalCakeTool(toolsDir, version);

Expand Down

0 comments on commit 9229ab8

Please # to comment.