Revert "Consuming 3.0 actions/cache (#834)"

This reverts commit 354a2ae15e.
This commit is contained in:
Bariscankibarcekici 2022-07-28 23:59:22 +03:00
parent 2574900a40
commit cd145abe1d
9 changed files with 152 additions and 124 deletions

View file

@ -267,6 +267,7 @@ test("save with large cache outputs warning", async () => {
});
test("save with reserve cache failure outputs warning", async () => {
const infoMock = jest.spyOn(core, "info");
const logWarningMock = jest.spyOn(actionUtils, "logWarning");
const failedMock = jest.spyOn(core, "setFailed");
@ -305,10 +306,10 @@ test("save with reserve cache failure outputs warning", async () => {
expect.anything()
);
expect(logWarningMock).toHaveBeenCalledWith(
expect(infoMock).toHaveBeenCalledWith(
`Unable to reserve cache with key ${primaryKey}, another job may be creating this cache.`
);
expect(logWarningMock).toHaveBeenCalledTimes(1);
expect(logWarningMock).toHaveBeenCalledTimes(0);
expect(failedMock).toHaveBeenCalledTimes(0);
});