mirror of
https://github.com/actions/setup-node.git
synced 2025-07-22 22:48:22 +02:00
test cases
This commit is contained in:
parent
17e88b6567
commit
19df1001b0
6 changed files with 318 additions and 22 deletions
|
@ -318,14 +318,11 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||
|
||||
protected async downloadFromMirrorURL() {
|
||||
const nodeJsVersions = await this.getMirrorUrlVersions();
|
||||
core.info('nodeJsVersions from getMirrorUrVersions '+nodeJsVersions);
|
||||
const versions = this.filterVersions(nodeJsVersions);
|
||||
core.info('versions from filterVersions '+versions);
|
||||
|
||||
|
||||
const evaluatedVersion = this.evaluateVersions(versions);
|
||||
|
||||
core.info('evaluatedVersion from evaluatedVersions '+evaluatedVersion);
|
||||
|
||||
|
||||
if (!evaluatedVersion) {
|
||||
|
@ -336,12 +333,10 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||
|
||||
const toolName = this.getNodejsMirrorURLInfo(evaluatedVersion);
|
||||
|
||||
core.info('toolName from getNodejsMirrorURLInfo '+toolName);
|
||||
|
||||
|
||||
try {
|
||||
const toolPath = await this.downloadNodejs(toolName);
|
||||
core.info('toolPath from downloadNodejs '+toolPath);
|
||||
|
||||
return toolPath;
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue