mirror of
https://github.com/actions/setup-java.git
synced 2025-04-22 02:46:46 +00:00
GraalVM support
This commit is contained in:
parent
a12e082d83
commit
63715776f4
9 changed files with 7869 additions and 324 deletions
22
__tests__/distributors/graalvm-installer.test.ts
Normal file
22
__tests__/distributors/graalvm-installer.test.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
import semver from 'semver';
|
||||
|
||||
describe('getAvailableVersions', () => {
|
||||
it('works', () => {
|
||||
const versions = [
|
||||
'1.2.3+22.0.0.2',
|
||||
'1.2.3+21.3.1',
|
||||
'1.2.3+20.3.5',
|
||||
'1.2.3+21.3.0',
|
||||
'1.2.3+20.3.4',
|
||||
'1.2.3+21.2.0',
|
||||
'1.2.3+20.3.3',
|
||||
'1.2.3+21.1.0',
|
||||
'1.2.3+20.3.2',
|
||||
'1.2.3+19.3.6',
|
||||
'1.2.3+21.0.0.2',
|
||||
'1.2.3+20.3.1.2',
|
||||
'1.2.3+21.0.0'
|
||||
];
|
||||
expect(versions.sort((x, y) => semver.compareBuild(x, y))).toEqual([]);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue