Compare commits

...

6 Commits

Author SHA1 Message Date
Joshua Brooks
e9b91fdc3f Prettier fixes 2026-06-11 16:23:52 +00:00
Joshua Brooks
e4884b8ff7 Rebuild dist 2026-06-11 15:59:57 +00:00
Joshua Brooks
10baf0191a Fixed licenses 2026-06-11 15:50:44 +00:00
Joshua Brooks
e39b386c90 Fix test mock return order 2026-06-11 15:08:26 +00:00
Joshua Brooks
b692820337 PR feedback 2026-06-11 14:46:05 +00:00
Joshua Brooks
60749128a4 Rebuild dist bundles as ESM to match type:module 2026-06-11 14:22:50 +00:00
35 changed files with 187578 additions and 181345 deletions

View File

@@ -1,6 +1,6 @@
--- ---
name: "@actions/cache" name: "@actions/cache"
version: 5.0.5 version: 6.0.1
type: npm type: npm
summary: Actions cache lib summary: Actions cache lib
homepage: https://github.com/actions/toolkit/tree/main/packages/cache homepage: https://github.com/actions/toolkit/tree/main/packages/cache

View File

@@ -1,6 +1,6 @@
--- ---
name: "@actions/core" name: "@actions/core"
version: 2.0.3 version: 3.0.1
type: npm type: npm
summary: Actions core lib summary: Actions core lib
homepage: https://github.com/actions/toolkit/tree/main/packages/core homepage: https://github.com/actions/toolkit/tree/main/packages/core

View File

@@ -1,6 +1,6 @@
--- ---
name: "@actions/exec" name: "@actions/exec"
version: 2.0.0 version: 3.0.0
type: npm type: npm
summary: Actions exec lib summary: Actions exec lib
homepage: https://github.com/actions/toolkit/tree/main/packages/exec homepage: https://github.com/actions/toolkit/tree/main/packages/exec

View File

@@ -1,6 +1,6 @@
--- ---
name: "@actions/glob" name: "@actions/glob"
version: 0.5.1 version: 0.6.1
type: npm type: npm
summary: Actions glob lib summary: Actions glob lib
homepage: https://github.com/actions/toolkit/tree/main/packages/glob homepage: https://github.com/actions/toolkit/tree/main/packages/glob

View File

@@ -1,6 +1,6 @@
--- ---
name: "@actions/http-client" name: "@actions/http-client"
version: 3.0.2 version: 4.0.1
type: npm type: npm
summary: Actions Http Client summary: Actions Http Client
homepage: https://github.com/actions/toolkit/tree/main/packages/http-client homepage: https://github.com/actions/toolkit/tree/main/packages/http-client

View File

@@ -1,6 +1,6 @@
--- ---
name: "@actions/io" name: "@actions/io"
version: 2.0.0 version: 3.0.2
type: npm type: npm
summary: Actions io lib summary: Actions io lib
homepage: https://github.com/actions/toolkit/tree/main/packages/io homepage: https://github.com/actions/toolkit/tree/main/packages/io

View File

@@ -1,32 +0,0 @@
---
name: "@azure/abort-controller"
version: 1.1.0
type: npm
summary: Microsoft Azure SDK for JavaScript - Aborter
homepage: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/abort-controller/README.md
license: mit
licenses:
- sources: LICENSE
text: |
The MIT License (MIT)
Copyright (c) 2020 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
notices: []

View File

@@ -1,6 +1,6 @@
--- ---
name: "@azure/core-http-compat" name: "@azure/core-http-compat"
version: 2.3.1 version: 2.4.0
type: npm type: npm
summary: Core HTTP Compatibility Library to bridge the gap between Core V1 & V2 packages. summary: Core HTTP Compatibility Library to bridge the gap between Core V1 & V2 packages.
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-compat/ homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-compat/

View File

@@ -1,6 +1,6 @@
--- ---
name: "@azure/core-rest-pipeline" name: "@azure/core-rest-pipeline"
version: 1.22.2 version: 1.23.0
type: npm type: npm
summary: Isomorphic client library for making HTTP requests in node.js and browser. summary: Isomorphic client library for making HTTP requests in node.js and browser.
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/ homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/

View File

@@ -1,6 +1,6 @@
--- ---
name: "@azure/core-xml" name: "@azure/core-xml"
version: 1.5.0 version: 1.5.1
type: npm type: npm
summary: Core library for interacting with XML payloads summary: Core library for interacting with XML payloads
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-xml/ homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-xml/

View File

@@ -1,6 +1,6 @@
--- ---
name: "@azure/storage-blob" name: "@azure/storage-blob"
version: 12.30.0 version: 12.31.0
type: npm type: npm
summary: Microsoft Azure Storage SDK for JavaScript - Blob summary: Microsoft Azure Storage SDK for JavaScript - Blob
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/ homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/

View File

@@ -1,6 +1,6 @@
--- ---
name: "@azure/storage-common" name: "@azure/storage-common"
version: 12.2.0 version: 12.3.0
type: npm type: npm
summary: Azure Storage Common Client Library for JavaScript summary: Azure Storage Common Client Library for JavaScript
homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-internal-avro/ homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-internal-avro/

11
.licenses/npm/@nodable/entities.dep.yml generated Normal file
View File

@@ -0,0 +1,11 @@
---
name: "@nodable/entities"
version: 2.1.0
type: npm
summary: Entity parser for XML, HTML, External entites with security and NCR control
homepage:
license: mit
licenses:
- sources: README.md
text: MIT
notices: []

View File

@@ -1,9 +1,9 @@
--- ---
name: fast-xml-builder name: fast-xml-builder
version: 1.1.4 version: 1.2.0
type: npm type: npm
summary: Build XML from JSON without C/C++ based libraries summary: Build XML from JSON without C/C++ based libraries
homepage: homepage:
license: mit license: mit
licenses: licenses:
- sources: LICENSE - sources: LICENSE

View File

@@ -1,9 +1,9 @@
--- ---
name: fast-xml-parser name: fast-xml-parser
version: 5.5.6 version: 5.8.0
type: npm type: npm
summary: Validate XML, Parse XML, Build XML without C/C++ based libraries summary: Validate XML, Parse XML, Build XML without C/C++ based libraries
homepage: homepage:
license: mit license: mit
licenses: licenses:
- sources: LICENSE - sources: LICENSE

View File

@@ -1,6 +1,6 @@
--- ---
name: path-expression-matcher name: path-expression-matcher
version: 1.1.3 version: 1.5.0
type: npm type: npm
summary: Efficient path tracking and pattern matching for XML/JSON parsers summary: Efficient path tracking and pattern matching for XML/JSON parsers
homepage: https://github.com/NaturalIntelligence/path-expression-matcher#readme homepage: https://github.com/NaturalIntelligence/path-expression-matcher#readme

View File

@@ -1,6 +1,6 @@
--- ---
name: semver name: semver
version: 6.3.1 version: 7.8.0
type: npm type: npm
summary: The semantic version parser used by npm. summary: The semantic version parser used by npm.
homepage: homepage:

View File

@@ -1,9 +1,9 @@
--- ---
name: strnum name: strnum
version: 2.1.2 version: 2.3.0
type: npm type: npm
summary: Parse String to Number based on configuration summary: Parse String to Number based on configuration
homepage: homepage:
license: mit license: mit
licenses: licenses:
- sources: LICENSE - sources: LICENSE

View File

@@ -1,6 +1,6 @@
--- ---
name: undici name: undici
version: 6.24.1 version: 6.25.0
type: npm type: npm
summary: An HTTP/1.1 client, written from scratch for Node.js summary: An HTTP/1.1 client, written from scratch for Node.js
homepage: https://undici.nodejs.org homepage: https://undici.nodejs.org

12
.licenses/npm/xml-naming.dep.yml generated Normal file
View File

@@ -0,0 +1,12 @@
---
name: xml-naming
version: 0.1.0
type: npm
summary: Validates XML name productions — Name, NCName, QName, NMToken, NMTokens —
for XML 1.0 and 1.1
homepage:
license: mit
licenses:
- sources: README.md
text: MIT
notices: []

View File

@@ -18,7 +18,7 @@ See ["Caching dependencies to speed up workflows"](https://docs.github.com/en/ac
### ⚠️ Important changes ### ⚠️ Important changes
> [!IMPORTANT] > [!IMPORTANT]
> `actions/cache@v6` runs on the Node.js 24 runtime and requires a minimum Actions Runner version of `2.327.1`. > `actions/cache@v5` runs on the Node.js 24 runtime and requires a minimum Actions Runner version of `2.327.1`.
> If you are using self-hosted runners, ensure they are updated before upgrading. > If you are using self-hosted runners, ensure they are updated before upgrading.
The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs. The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs.
@@ -83,7 +83,7 @@ Create a workflow `.yml` file in your repository's `.github/workflows` directory
If you are using this inside a container, a POSIX-compliant `tar` needs to be included and accessible from the execution path. If you are using this inside a container, a POSIX-compliant `tar` needs to be included and accessible from the execution path.
Note: `actions/cache@v6` runs on Node.js 24 and requires a minimum Actions Runner version of `2.327.1`. Note: `actions/cache@v5` runs on Node.js 24 and requires a minimum Actions Runner version of `2.327.1`.
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. 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.

View File

@@ -50,7 +50,7 @@ let pristineEnv: NodeJS.ProcessEnv;
beforeEach(() => { beforeEach(() => {
pristineEnv = { ...process.env }; pristineEnv = { ...process.env };
jest.clearAllMocks(); jest.clearAllMocks();
(core.getInput as jest.Mock).mockImplementation( jest.mocked(core.getInput).mockImplementation(
(name: string, options?: { required?: boolean }) => { (name: string, options?: { required?: boolean }) => {
const val = const val =
process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] ||
@@ -217,12 +217,12 @@ test("getInputAsBool throws if required and value missing", () => {
}); });
test("isCacheFeatureAvailable for ac enabled", () => { test("isCacheFeatureAvailable for ac enabled", () => {
(cache.isFeatureAvailable as jest.Mock).mockReturnValue(true); jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
expect(actionUtils.isCacheFeatureAvailable()).toBe(true); expect(actionUtils.isCacheFeatureAvailable()).toBe(true);
}); });
test("isCacheFeatureAvailable for ac disabled on GHES", () => { test("isCacheFeatureAvailable for ac disabled on GHES", () => {
(cache.isFeatureAvailable as jest.Mock).mockReturnValue(false); jest.mocked(cache.isFeatureAvailable).mockReturnValue(false);
const message = `Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not. const message = `Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.
Otherwise please upgrade to GHES version >= 3.5 and If you are also using Github Connect, please unretire the actions/cache namespace before upgrade (see https://docs.github.com/en/enterprise-server@3.5/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect#automatic-retirement-of-namespaces-for-actions-accessed-on-githubcom)`; Otherwise please upgrade to GHES version >= 3.5 and If you are also using Github Connect, please unretire the actions/cache namespace before upgrade (see https://docs.github.com/en/enterprise-server@3.5/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect#automatic-retirement-of-namespaces-for-actions-accessed-on-githubcom)`;
@@ -237,7 +237,7 @@ Otherwise please upgrade to GHES version >= 3.5 and If you are also using Github
}); });
test("isCacheFeatureAvailable for ac disabled on dotcom", () => { test("isCacheFeatureAvailable for ac disabled on dotcom", () => {
(cache.isFeatureAvailable as jest.Mock).mockReturnValue(false); jest.mocked(cache.isFeatureAvailable).mockReturnValue(false);
const message = const message =
"An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions."; "An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.";

View File

@@ -48,7 +48,7 @@ const testUtils = await import("../src/utils/testUtils");
beforeEach(() => { beforeEach(() => {
jest.clearAllMocks(); jest.clearAllMocks();
(core.getInput as jest.Mock).mockImplementation( jest.mocked(core.getInput).mockImplementation(
(name: string, options?: { required?: boolean }) => { (name: string, options?: { required?: boolean }) => {
const val = const val =
process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] ||
@@ -59,8 +59,8 @@ beforeEach(() => {
return val.trim(); return val.trim();
} }
); );
(core.getState as jest.Mock).mockReturnValue(""); jest.mocked(core.getState).mockReturnValue("");
(cache.isFeatureAvailable as jest.Mock).mockReturnValue(true); jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
process.env[Events.Key] = Events.Push; process.env[Events.Key] = Events.Push;
process.env[RefKey] = "refs/heads/feature-branch"; process.env[RefKey] = "refs/heads/feature-branch";
}); });
@@ -83,7 +83,7 @@ test("restore with invalid event outputs warning", async () => {
}); });
test("restore without AC available should no-op", async () => { test("restore without AC available should no-op", async () => {
(cache.isFeatureAvailable as jest.Mock).mockReturnValue(false); jest.mocked(cache.isFeatureAvailable).mockReturnValue(false);
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
@@ -93,13 +93,21 @@ test("restore without AC available should no-op", async () => {
}); });
test("restore on GHES without AC available should no-op", async () => { test("restore on GHES without AC available should no-op", async () => {
(cache.isFeatureAvailable as jest.Mock).mockReturnValue(false); process.env["GITHUB_SERVER_URL"] = "https://my-ghes-server.com";
jest.mocked(cache.isFeatureAvailable).mockReturnValue(false);
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
expect(cache.restoreCache).toHaveBeenCalledTimes(0); expect(cache.restoreCache).toHaveBeenCalledTimes(0);
expect(core.setOutput).toHaveBeenCalledTimes(1); expect(core.setOutput).toHaveBeenCalledTimes(1);
expect(core.setOutput).toHaveBeenCalledWith("cache-hit", "false"); expect(core.setOutput).toHaveBeenCalledWith("cache-hit", "false");
expect(core.info).toHaveBeenCalledWith(
expect.stringContaining(
"Cache action is only supported on GHES version >= 3.5"
)
);
delete process.env["GITHUB_SERVER_URL"];
}); });
test("restore on GHES with AC available ", async () => { test("restore on GHES with AC available ", async () => {
@@ -111,7 +119,7 @@ test("restore on GHES with AC available ", async () => {
enableCrossOsArchive: false enableCrossOsArchive: false
}); });
(cache.restoreCache as jest.Mock).mockResolvedValue(key); jest.mocked(cache.restoreCache).mockResolvedValue(key);
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
@@ -160,7 +168,7 @@ test("restore with too many keys should fail", async () => {
restoreKeys, restoreKeys,
enableCrossOsArchive: false enableCrossOsArchive: false
}); });
(cache.restoreCache as jest.Mock).mockRejectedValue( jest.mocked(cache.restoreCache).mockRejectedValue(
new Error("Key Validation Error: Keys are limited to a maximum of 10.") new Error("Key Validation Error: Keys are limited to a maximum of 10.")
); );
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
@@ -178,7 +186,7 @@ test("restore with large key should fail", async () => {
key, key,
enableCrossOsArchive: false enableCrossOsArchive: false
}); });
(cache.restoreCache as jest.Mock).mockRejectedValue( jest.mocked(cache.restoreCache).mockRejectedValue(
new Error( new Error(
`Key Validation Error: ${key} cannot be larger than 512 characters.` `Key Validation Error: ${key} cannot be larger than 512 characters.`
) )
@@ -198,7 +206,7 @@ test("restore with invalid key should fail", async () => {
key, key,
enableCrossOsArchive: false enableCrossOsArchive: false
}); });
(cache.restoreCache as jest.Mock).mockRejectedValue( jest.mocked(cache.restoreCache).mockRejectedValue(
new Error(`Key Validation Error: ${key} cannot contain commas.`) new Error(`Key Validation Error: ${key} cannot contain commas.`)
); );
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
@@ -217,7 +225,7 @@ test("restore with no cache found", async () => {
enableCrossOsArchive: false enableCrossOsArchive: false
}); });
(cache.restoreCache as jest.Mock).mockResolvedValue(undefined); jest.mocked(cache.restoreCache).mockResolvedValue(undefined);
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
@@ -240,7 +248,7 @@ test("restore with restore keys and no cache found", async () => {
enableCrossOsArchive: false enableCrossOsArchive: false
}); });
(cache.restoreCache as jest.Mock).mockResolvedValue(undefined); jest.mocked(cache.restoreCache).mockResolvedValue(undefined);
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
@@ -261,7 +269,7 @@ test("restore with cache found for key", async () => {
enableCrossOsArchive: false enableCrossOsArchive: false
}); });
(cache.restoreCache as jest.Mock).mockResolvedValue(key); jest.mocked(cache.restoreCache).mockResolvedValue(key);
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
@@ -284,7 +292,7 @@ test("restore with cache found for restore key", async () => {
enableCrossOsArchive: false enableCrossOsArchive: false
}); });
(cache.restoreCache as jest.Mock).mockResolvedValue(restoreKey); jest.mocked(cache.restoreCache).mockResolvedValue(restoreKey);
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());
@@ -307,7 +315,7 @@ test("restore with lookup-only set", async () => {
lookupOnly: true lookupOnly: true
}); });
(cache.restoreCache as jest.Mock).mockResolvedValue(key); jest.mocked(cache.restoreCache).mockResolvedValue(key);
await restoreImpl(new StateProvider()); await restoreImpl(new StateProvider());

View File

@@ -101,11 +101,19 @@ test("save without AC available should no-op", async () => {
}); });
test("save on ghes without AC available should no-op", async () => { test("save on ghes without AC available should no-op", async () => {
process.env["GITHUB_SERVER_URL"] = "https://my-ghes-server.com";
(cache.isFeatureAvailable as jest.Mock).mockReturnValue(false); (cache.isFeatureAvailable as jest.Mock).mockReturnValue(false);
await saveImpl(new StateProvider()); await saveImpl(new StateProvider());
expect(cache.saveCache).toHaveBeenCalledTimes(0); expect(cache.saveCache).toHaveBeenCalledTimes(0);
expect(core.info).toHaveBeenCalledWith(
expect.stringContaining(
"Cache action is only supported on GHES version >= 3.5"
)
);
delete process.env["GITHUB_SERVER_URL"];
}); });
test("save on GHES with AC available", async () => { test("save on GHES with AC available", async () => {
@@ -159,8 +167,8 @@ test("save with missing input outputs warning", async () => {
const savedCacheKey = "Linux-node-"; const savedCacheKey = "Linux-node-";
(core.getState as jest.Mock) (core.getState as jest.Mock)
.mockReturnValueOnce(savedCacheKey) .mockReturnValueOnce(primaryKey)
.mockReturnValueOnce(primaryKey); .mockReturnValueOnce(savedCacheKey);
await saveImpl(new StateProvider()); await saveImpl(new StateProvider());
@@ -176,8 +184,8 @@ test("save with large cache outputs warning", async () => {
const savedCacheKey = "Linux-node-"; const savedCacheKey = "Linux-node-";
(core.getState as jest.Mock) (core.getState as jest.Mock)
.mockReturnValueOnce(savedCacheKey) .mockReturnValueOnce(primaryKey)
.mockReturnValueOnce(primaryKey); .mockReturnValueOnce(savedCacheKey);
const inputPath = "node_modules"; const inputPath = "node_modules";
testUtils.setInput(Inputs.Path, inputPath); testUtils.setInput(Inputs.Path, inputPath);
@@ -202,8 +210,8 @@ test("save with reserve cache failure outputs warning", async () => {
const savedCacheKey = "Linux-node-"; const savedCacheKey = "Linux-node-";
(core.getState as jest.Mock) (core.getState as jest.Mock)
.mockReturnValueOnce(savedCacheKey) .mockReturnValueOnce(primaryKey)
.mockReturnValueOnce(primaryKey); .mockReturnValueOnce(savedCacheKey);
const inputPath = "node_modules"; const inputPath = "node_modules";
testUtils.setInput(Inputs.Path, inputPath); testUtils.setInput(Inputs.Path, inputPath);
@@ -228,8 +236,8 @@ test("save with server error outputs warning", async () => {
const savedCacheKey = "Linux-node-"; const savedCacheKey = "Linux-node-";
(core.getState as jest.Mock) (core.getState as jest.Mock)
.mockReturnValueOnce(savedCacheKey) .mockReturnValueOnce(primaryKey)
.mockReturnValueOnce(primaryKey); .mockReturnValueOnce(savedCacheKey);
const inputPath = "node_modules"; const inputPath = "node_modules";
testUtils.setInput(Inputs.Path, inputPath); testUtils.setInput(Inputs.Path, inputPath);

File diff suppressed because one or more lines are too long

3
dist/restore-only/package.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"type": "module"
}

92174
dist/restore/index.js vendored

File diff suppressed because one or more lines are too long

3
dist/restore/package.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"type": "module"
}

92177
dist/save-only/index.js vendored

File diff suppressed because one or more lines are too long

3
dist/save-only/package.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"type": "module"
}

92177
dist/save/index.js vendored

File diff suppressed because one or more lines are too long

3
dist/save/package.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"type": "module"
}

View File

@@ -1,21 +1,21 @@
export default { export default {
clearMocks: true, clearMocks: true,
moduleFileExtensions: ['js', 'ts'], moduleFileExtensions: ["js", "ts"],
roots: ['<rootDir>/__tests__'], roots: ["<rootDir>/__tests__"],
testEnvironment: 'node', testEnvironment: "node",
testMatch: ['**/*.test.ts'], testMatch: ["**/*.test.ts"],
transform: { transform: {
'^.+\\.ts$': [ "^.+\\.ts$": [
'ts-jest', "ts-jest",
{ {
useESM: true, useESM: true,
diagnostics: { diagnostics: {
ignoreCodes: [151002] ignoreCodes: [151002]
} }
} }
] ]
}, },
extensionsToTreatAsEsm: ['.ts'], extensionsToTreatAsEsm: [".ts"],
transformIgnorePatterns: ['node_modules/(?!(@actions)/)'], transformIgnorePatterns: ["node_modules/(?!(@actions)/)"],
verbose: true verbose: true
} };

View File

@@ -7,7 +7,7 @@
"main": "dist/restore/index.js", "main": "dist/restore/index.js",
"scripts": { "scripts": {
"build": "tsc && ncc build -o dist/restore src/restore.ts && ncc build -o dist/save src/save.ts && ncc build -o dist/restore-only src/restoreOnly.ts && ncc build -o dist/save-only src/saveOnly.ts", "build": "tsc && ncc build -o dist/restore src/restore.ts && ncc build -o dist/save src/save.ts && ncc build -o dist/restore-only src/restoreOnly.ts && ncc build -o dist/save-only src/saveOnly.ts",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage", "test": "tsc --noEmit && node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
"lint": "eslint **/*.ts --cache", "lint": "eslint **/*.ts --cache",
"format": "prettier --write **/*.ts", "format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts" "format-check": "prettier --check **/*.ts"