Add setup orchestration tests (#1163)

Make the setup entrypoint import-safe and cover its validation, installation sequencing, post-install collaborators, caching, and failure handling directly.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a5ba8975-a9ac-4d2c-b41d-97c99689d1bd
This commit is contained in:
Bruno Borges
2026-07-29 00:36:12 -04:00
committed by GitHub
parent 5894ef6b27
commit 6e26972896
3 changed files with 430 additions and 3 deletions
+14 -1
View File
@@ -68941,6 +68941,11 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"6.
/************************************************************************/
var __webpack_exports__ = {};
// EXPORTS
__nccwpck_require__.d(__webpack_exports__, {
e: () => (/* binding */ run)
});
// NAMESPACE OBJECT: ./node_modules/@azure/storage-blob/dist/esm/generated/src/models/mappers.js
var mappers_namespaceObject = {};
__nccwpck_require__.r(mappers_namespaceObject);
@@ -132361,7 +132366,13 @@ async function run() {
setFailed(error.message);
}
}
run();
if (process.argv[1] === (0,external_url_.fileURLToPath)(import.meta.url)) {
run();
}
else {
// https://nodejs.org/api/modules.html#modules_accessing_the_main_module
info('the script is loaded as a module, so skipping the execution');
}
function getJdkFileInput() {
const jdkFile = getInput(INPUT_JDK_FILE);
const deprecatedJdkFile = getInput(INPUT_JDK_FILE_DEPRECATED);
@@ -132400,3 +132411,5 @@ async function installVersion(version, options, toolchainId = 0) {
info('');
}
var __webpack_exports__run = __webpack_exports__.e;
export { __webpack_exports__run as run };