mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-08 13:11:11 +00:00
restructure tests
This commit is contained in:
parent
822a587e93
commit
2723204c59
14 changed files with 1956 additions and 1104 deletions
|
@ -29,7 +29,7 @@ function identifyDistribution(versionSpec: string) {
|
|||
|
||||
export function getNodejsDistribution(
|
||||
installerOptions: INodejs
|
||||
): BaseDistribution | null {
|
||||
): BaseDistribution {
|
||||
const distributionName = identifyDistribution(installerOptions.versionSpec);
|
||||
switch (distributionName) {
|
||||
case Distributions.NIGHTLY:
|
||||
|
@ -38,9 +38,7 @@ export function getNodejsDistribution(
|
|||
return new CanaryBuild(installerOptions);
|
||||
case Distributions.RC:
|
||||
return new RcBuild(installerOptions);
|
||||
case Distributions.DEFAULT:
|
||||
return new OfficialBuilds(installerOptions);
|
||||
default:
|
||||
return null;
|
||||
return new OfficialBuilds(installerOptions);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue