mirror of
https://github.com/actions/setup-java.git
synced 2026-06-23 08:10:30 +03:00
chore: address GraalVM community review feedback
This commit is contained in:
committed by
GitHub
parent
ad52b8c6db
commit
6929a11922
@@ -1054,12 +1054,20 @@ describe('GraalVMDistribution', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('distribution factory', () => {
|
});
|
||||||
it('should map graalvm-community to the community installer', () => {
|
|
||||||
const community = getJavaDistribution('graalvm-community', defaultOptions);
|
|
||||||
|
|
||||||
expect(community).toBeInstanceOf(GraalVMCommunityDistribution);
|
describe('distribution factory', () => {
|
||||||
});
|
const defaultOptions: JavaInstallerOptions = {
|
||||||
|
version: '17',
|
||||||
|
architecture: 'x64',
|
||||||
|
packageType: 'jdk',
|
||||||
|
checkLatest: false
|
||||||
|
};
|
||||||
|
|
||||||
|
it('should map graalvm-community to the community installer', () => {
|
||||||
|
const community = getJavaDistribution('graalvm-community', defaultOptions);
|
||||||
|
|
||||||
|
expect(community).toBeInstanceOf(GraalVMCommunityDistribution);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Vendored
+2
-2
@@ -79168,8 +79168,8 @@ class GraalVMDistribution extends base_installer_1.JavaBase {
|
|||||||
return {
|
return {
|
||||||
arch,
|
arch,
|
||||||
platform,
|
platform,
|
||||||
extension,
|
major,
|
||||||
major
|
extension
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
constructFileUrl(range, major, platform, arch, extension) {
|
constructFileUrl(range, major, platform, arch, extension) {
|
||||||
|
|||||||
@@ -182,8 +182,8 @@ export class GraalVMDistribution extends JavaBase {
|
|||||||
return {
|
return {
|
||||||
arch,
|
arch,
|
||||||
platform,
|
platform,
|
||||||
extension,
|
major,
|
||||||
major
|
extension
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user