Loading __tests__/restore.test.ts +2 −2 Changes for __tests__/restore.test.ts: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ test("restore with invalid event outputs warning", async () => { test("restore on GHES should no-op", async () => { jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true); const infoMock = jest.spyOn(core, "info"); const logWarningMock = jest.spyOn(actionUtils, "logWarning"); const restoreCacheMock = jest.spyOn(cache, "restoreCache"); const setCacheHitOutputMock = jest.spyOn(actionUtils, "setCacheHitOutput"); Loading @@ -67,7 +67,7 @@ test("restore on GHES should no-op", async () => { expect(restoreCacheMock).toHaveBeenCalledTimes(0); expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); expect(setCacheHitOutputMock).toHaveBeenCalledWith(false); expect(infoMock).toHaveBeenCalledWith( expect(logWarningMock).toHaveBeenCalledWith( "Cache action is not supported on GHES" ); }); Loading __tests__/save.test.ts +2 −2 Changes for __tests__/save.test.ts: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -96,13 +96,13 @@ test("save with no primary key in state outputs warning", async () => { test("save on GHES should no-op", async () => { jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true); const infoMock = jest.spyOn(core, "info"); const logWarningMock = jest.spyOn(actionUtils, "logWarning"); const saveCacheMock = jest.spyOn(cache, "saveCache"); await run(); expect(saveCacheMock).toHaveBeenCalledTimes(0); expect(infoMock).toHaveBeenCalledWith( expect(logWarningMock).toHaveBeenCalledWith( "Cache action is not supported on GHES" ); }); Loading dist/restore/index.js +1 −1 Changes for dist/restore/index.js: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -39995,7 +39995,7 @@ function run() { return __awaiter(this, void 0, void 0, function* () { try { if (utils.isGhes()) { core.info("Cache action is not supported on GHES"); utils.logWarning("Cache action is not supported on GHES"); utils.setCacheHitOutput(false); return; } dist/save/index.js +1 −1 Changes for dist/save/index.js: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -38331,7 +38331,7 @@ function run() { return __awaiter(this, void 0, void 0, function* () { try { if (utils.isGhes()) { core.info("Cache action is not supported on GHES"); utils.logWarning("Cache action is not supported on GHES"); return; } if (!utils.isValidEvent()) { src/restore.ts +1 −1 Changes for src/restore.ts: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ import * as utils from "./utils/actionUtils"; async function run(): Promise<void> { try { if (utils.isGhes()) { core.info("Cache action is not supported on GHES"); utils.logWarning("Cache action is not supported on GHES"); utils.setCacheHitOutput(false); return; } Loading Loading
__tests__/restore.test.ts +2 −2 Changes for __tests__/restore.test.ts: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ test("restore with invalid event outputs warning", async () => { test("restore on GHES should no-op", async () => { jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true); const infoMock = jest.spyOn(core, "info"); const logWarningMock = jest.spyOn(actionUtils, "logWarning"); const restoreCacheMock = jest.spyOn(cache, "restoreCache"); const setCacheHitOutputMock = jest.spyOn(actionUtils, "setCacheHitOutput"); Loading @@ -67,7 +67,7 @@ test("restore on GHES should no-op", async () => { expect(restoreCacheMock).toHaveBeenCalledTimes(0); expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); expect(setCacheHitOutputMock).toHaveBeenCalledWith(false); expect(infoMock).toHaveBeenCalledWith( expect(logWarningMock).toHaveBeenCalledWith( "Cache action is not supported on GHES" ); }); Loading
__tests__/save.test.ts +2 −2 Changes for __tests__/save.test.ts: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -96,13 +96,13 @@ test("save with no primary key in state outputs warning", async () => { test("save on GHES should no-op", async () => { jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true); const infoMock = jest.spyOn(core, "info"); const logWarningMock = jest.spyOn(actionUtils, "logWarning"); const saveCacheMock = jest.spyOn(cache, "saveCache"); await run(); expect(saveCacheMock).toHaveBeenCalledTimes(0); expect(infoMock).toHaveBeenCalledWith( expect(logWarningMock).toHaveBeenCalledWith( "Cache action is not supported on GHES" ); }); Loading
dist/restore/index.js +1 −1 Changes for dist/restore/index.js: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -39995,7 +39995,7 @@ function run() { return __awaiter(this, void 0, void 0, function* () { try { if (utils.isGhes()) { core.info("Cache action is not supported on GHES"); utils.logWarning("Cache action is not supported on GHES"); utils.setCacheHitOutput(false); return; }
dist/save/index.js +1 −1 Changes for dist/save/index.js: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -38331,7 +38331,7 @@ function run() { return __awaiter(this, void 0, void 0, function* () { try { if (utils.isGhes()) { core.info("Cache action is not supported on GHES"); utils.logWarning("Cache action is not supported on GHES"); return; } if (!utils.isValidEvent()) {
src/restore.ts +1 −1 Changes for src/restore.ts: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ import * as utils from "./utils/actionUtils"; async function run(): Promise<void> { try { if (utils.isGhes()) { core.info("Cache action is not supported on GHES"); utils.logWarning("Cache action is not supported on GHES"); utils.setCacheHitOutput(false); return; } Loading