diff --git a/jest.config.cjs b/jest.config.cjs index b9a0d32..ad98e56 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -46,8 +46,9 @@ module.exports = { } ] }, - transformIgnorePatterns: ['/node_modules/(?!(?:@actions/exec|@actions/github|@actions/http-client|@actions/io|@octokit|universal-user-agent|before-after-hook)/)'], + transformIgnorePatterns: ['/node_modules/(?!(?:@actions/core|@actions/exec|@actions/github|@actions/http-client|@actions/io|@octokit|universal-user-agent|before-after-hook)/)'], moduleNameMapper: { + '^@actions/core': '/node_modules/@actions/core/lib/core.js', '^@actions/exec$': '/node_modules/@actions/exec/lib/exec.js', '^@actions/github$': '/node_modules/@actions/github/lib/github.js', '^@actions/http-client$': '/node_modules/@actions/http-client/lib/index.js', diff --git a/jest.config.itg.cjs b/jest.config.itg.cjs index 61de7ed..4f05b2e 100644 --- a/jest.config.itg.cjs +++ b/jest.config.itg.cjs @@ -29,8 +29,9 @@ module.exports = { } ] }, - transformIgnorePatterns: ['/node_modules/(?!(?:@actions/exec|@actions/github|@actions/http-client|@actions/io|@octokit|universal-user-agent|before-after-hook)/)'], + transformIgnorePatterns: ['/node_modules/(?!(?:@actions/core|@actions/exec|@actions/github|@actions/http-client|@actions/io|@octokit|universal-user-agent|before-after-hook)/)'], moduleNameMapper: { + '^@actions/core': '/node_modules/@actions/core/lib/core.js', '^@actions/exec$': '/node_modules/@actions/exec/lib/exec.js', '^@actions/github$': '/node_modules/@actions/github/lib/github.js', '^@actions/http-client$': '/node_modules/@actions/http-client/lib/index.js', diff --git a/package.json b/package.json index 22ff57c..4bf813b 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "dependencies": { "@actions/artifact": "^5.0.3", "@actions/cache": "^5.0.5", - "@actions/core": "^2.0.3", + "@actions/core": "^3.0.0", "@actions/exec": "^3.0.0", "@actions/github": "^9.0.0", "@actions/http-client": "^4.0.0", diff --git a/yarn.lock b/yarn.lock index eec1ecc..2967814 100644 --- a/yarn.lock +++ b/yarn.lock @@ -81,6 +81,16 @@ __metadata: languageName: node linkType: hard +"@actions/core@npm:^3.0.0": + version: 3.0.0 + resolution: "@actions/core@npm:3.0.0" + dependencies: + "@actions/exec": "npm:^3.0.0" + "@actions/http-client": "npm:^4.0.0" + checksum: 10/fddeebfaf6dfd199d9267a33a97d57e2f7afed7605a54e4a3c35a5a1455a5a8f29f1837bf6ac1711b223a457ba15339189f344c57629c52dbf3a216e96c728d6 + languageName: node + linkType: hard + "@actions/exec@npm:^2.0.0": version: 2.0.0 resolution: "@actions/exec@npm:2.0.0" @@ -1216,7 +1226,7 @@ __metadata: dependencies: "@actions/artifact": "npm:^5.0.3" "@actions/cache": "npm:^5.0.5" - "@actions/core": "npm:^2.0.3" + "@actions/core": "npm:^3.0.0" "@actions/exec": "npm:^3.0.0" "@actions/github": "npm:^9.0.0" "@actions/http-client": "npm:^4.0.0"