diff --git a/__tests__/restore.test.ts b/__tests__/restore.test.ts index 05fed55..212ec30 100644 --- a/__tests__/restore.test.ts +++ b/__tests__/restore.test.ts @@ -1,5 +1,6 @@ import * as core from "@actions/core"; import * as path from "path"; + import * as cacheHttpClient from "../src/cacheHttpClient"; import { Events, Inputs } from "../src/constants"; import { ArtifactCacheEntry } from "../src/contracts"; diff --git a/__tests__/save.test.ts b/__tests__/save.test.ts index 2c297bd..daab665 100644 --- a/__tests__/save.test.ts +++ b/__tests__/save.test.ts @@ -1,5 +1,6 @@ import * as core from "@actions/core"; import * as path from "path"; + import * as cacheHttpClient from "../src/cacheHttpClient"; import { Events, Inputs } from "../src/constants"; import { ArtifactCacheEntry } from "../src/contracts"; diff --git a/__tests__/tar.test.ts b/__tests__/tar.test.ts index 55ff4c7..c931471 100644 --- a/__tests__/tar.test.ts +++ b/__tests__/tar.test.ts @@ -1,5 +1,6 @@ import * as exec from "@actions/exec"; import * as io from "@actions/io"; + import * as tar from "../src/tar"; jest.mock("@actions/exec"); diff --git a/src/cacheHttpClient.ts b/src/cacheHttpClient.ts index 62ae2c1..90284d4 100644 --- a/src/cacheHttpClient.ts +++ b/src/cacheHttpClient.ts @@ -1,12 +1,13 @@ import * as core from "@actions/core"; -import * as fs from "fs"; -import { BearerCredentialHandler } from "@actions/http-client/auth"; import { HttpClient, HttpCodes } from "@actions/http-client"; +import { BearerCredentialHandler } from "@actions/http-client/auth"; import { IHttpClientResponse, IRequestOptions, ITypedResponse } from "@actions/http-client/interfaces"; +import * as fs from "fs"; + import { ArtifactCacheEntry, CommitCacheRequest, diff --git a/src/restore.ts b/src/restore.ts index f180c2b..721a8e3 100644 --- a/src/restore.ts +++ b/src/restore.ts @@ -1,5 +1,6 @@ import * as core from "@actions/core"; import * as path from "path"; + import * as cacheHttpClient from "./cacheHttpClient"; import { Events, Inputs, State } from "./constants"; import { extractTar } from "./tar"; diff --git a/src/save.ts b/src/save.ts index de03856..8cb5115 100644 --- a/src/save.ts +++ b/src/save.ts @@ -1,5 +1,6 @@ import * as core from "@actions/core"; import * as path from "path"; + import * as cacheHttpClient from "./cacheHttpClient"; import { Events, Inputs, State } from "./constants"; import { createTar } from "./tar";