GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix test mock return order · actions/cache@e39b386

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • __tests__
    • saveImpl.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Create a workflow `.yml` file in your repository's `.github/workflows` directory
8383

8484
If you are using this inside a container, a POSIX-compliant `tar` needs to be included and accessible from the execution path.
8585

86-
Note: `actions/cache@v6` runs on Node.js 24 and requires a minimum Actions Runner version of `2.327.1`.
86+
Note: `actions/cache@v5` runs on Node.js 24 and requires a minimum Actions Runner version of `2.327.1`.
8787

8888
If you are using a `self-hosted` Windows runner, `GNU tar` and `zstd` are required for [Cross-OS caching](https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cross-os-cache) to work. They are also recommended to be installed in general so the performance is on par with `hosted` Windows runners.
8989

Collapse file

‎__tests__/saveImpl.test.ts‎

Copy file name to clipboardExpand all lines: __tests__/saveImpl.test.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ test("save with large cache outputs warning", async () => {
184184
const savedCacheKey = "Linux-node-";
185185

186186
(core.getState as jest.Mock)
187-
.mockReturnValueOnce(savedCacheKey)
188-
.mockReturnValueOnce(primaryKey);
187+
.mockReturnValueOnce(primaryKey)
188+
.mockReturnValueOnce(savedCacheKey);
189189

190190
const inputPath = "node_modules";
191191
testUtils.setInput(Inputs.Path, inputPath);
@@ -210,8 +210,8 @@ test("save with reserve cache failure outputs warning", async () => {
210210
const savedCacheKey = "Linux-node-";
211211

212212
(core.getState as jest.Mock)
213-
.mockReturnValueOnce(savedCacheKey)
214-
.mockReturnValueOnce(primaryKey);
213+
.mockReturnValueOnce(primaryKey)
214+
.mockReturnValueOnce(savedCacheKey);
215215

216216
const inputPath = "node_modules";
217217
testUtils.setInput(Inputs.Path, inputPath);
@@ -236,8 +236,8 @@ test("save with server error outputs warning", async () => {
236236
const savedCacheKey = "Linux-node-";
237237

238238
(core.getState as jest.Mock)
239-
.mockReturnValueOnce(savedCacheKey)
240-
.mockReturnValueOnce(primaryKey);
239+
.mockReturnValueOnce(primaryKey)
240+
.mockReturnValueOnce(savedCacheKey);
241241

242242
const inputPath = "node_modules";
243243
testUtils.setInput(Inputs.Path, inputPath);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.