Skip to content

Commit 36d2ce1

Browse files
author
Gordey Doronin
committed
Switch warning to info logging
1 parent bcdcde0 commit 36d2ce1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

__tests__/installer.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ describe('setup-node', () => {
549549
await main.run();
550550

551551
// assert
552-
expect(warningSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
552+
expect(logSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
553553
expect(logSpy).toHaveBeenCalledWith('Attempt to resolve the latest version from manifest...');
554554
expect(dbgSpy).toHaveBeenCalledWith(`LTS alias 'erbium' for Node version 'lts/erbium'`)
555555
expect(dbgSpy).toHaveBeenCalledWith(`Found LTS release '12.16.2' for Node version 'lts/erbium'`)
@@ -577,7 +577,7 @@ describe('setup-node', () => {
577577
await main.run();
578578

579579
// assert
580-
expect(warningSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
580+
expect(logSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
581581
expect(logSpy).toHaveBeenCalledWith('Attempt to resolve the latest version from manifest...');
582582
expect(dbgSpy).toHaveBeenCalledWith(`LTS alias 'erbium' for Node version 'lts/erbium'`)
583583
expect(dbgSpy).toHaveBeenCalledWith(`Found LTS release '12.16.2' for Node version 'lts/erbium'`)
@@ -604,7 +604,7 @@ describe('setup-node', () => {
604604
await main.run();
605605

606606
// assert
607-
expect(warningSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
607+
expect(logSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
608608
expect(logSpy).toHaveBeenCalledWith('Attempt to resolve the latest version from manifest...');
609609
expect(dbgSpy).toHaveBeenCalledWith(`LTS alias '*' for Node version 'lts/*'`)
610610
expect(dbgSpy).toHaveBeenCalledWith(`Found LTS release '14.0.0' for Node version 'lts/*'`)
@@ -632,7 +632,7 @@ describe('setup-node', () => {
632632
await main.run();
633633

634634
// assert
635-
expect(warningSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
635+
expect(logSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
636636
expect(logSpy).toHaveBeenCalledWith('Attempt to resolve the latest version from manifest...');
637637
expect(dbgSpy).toHaveBeenCalledWith(`LTS alias '*' for Node version 'lts/*'`)
638638
expect(dbgSpy).toHaveBeenCalledWith(`Found LTS release '14.0.0' for Node version 'lts/*'`)
@@ -658,7 +658,7 @@ describe('setup-node', () => {
658658
await main.run();
659659

660660
// assert
661-
expect(warningSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
661+
expect(logSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
662662
expect(logSpy).toHaveBeenCalledWith('Attempt to resolve the latest version from manifest...');
663663
expect(logSpy).toHaveBeenCalledWith('Unable to resolve version from manifest...');
664664
expect(dbgSpy).toHaveBeenCalledWith(`Unexpected LTS alias '' for Node version 'lts/'`)
@@ -680,7 +680,7 @@ describe('setup-node', () => {
680680
await main.run();
681681

682682
// assert
683-
expect(warningSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
683+
expect(logSpy).toHaveBeenCalledWith('LTS version is provided. For LTS versions `check-latest` will be automatically set to true')
684684
expect(logSpy).toHaveBeenCalledWith('Attempt to resolve the latest version from manifest...');
685685
expect(dbgSpy).toHaveBeenCalledWith(`LTS alias 'unknown' for Node version 'lts/unknown'`)
686686
expect(logSpy).toHaveBeenCalledWith('Unable to resolve version from manifest...');

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13108,7 +13108,7 @@ function getNode(versionSpec, stable, checkLatest, auth, arch = os.arch()) {
1310813108
let osPlat = os.platform();
1310913109
let osArch = translateArchToDistUrl(arch);
1311013110
if (isLtsVersion(versionSpec)) {
13111-
core.warning('LTS version is provided. For LTS versions `check-latest` will be automatically set to true');
13111+
core.info('LTS version is provided. For LTS versions `check-latest` will be automatically set to true');
1311213112
checkLatest = true;
1311313113
}
1311413114
if (checkLatest) {

src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function getNode(
3939
let osArch: string = translateArchToDistUrl(arch);
4040

4141
if (isLtsVersion(versionSpec)) {
42-
core.warning('LTS version is provided. For LTS versions `check-latest` will be automatically set to true');
42+
core.info('LTS version is provided. For LTS versions `check-latest` will be automatically set to true');
4343
checkLatest = true;
4444
}
4545

0 commit comments

Comments
 (0)