mirror of
https://github.com/actions/setup-java.git
synced 2025-07-07 08:14:16 +00:00
Fix: prevent default installation of JetBrains pre-releases (#859)
* fix: prevent default installation of JetBrains pre-releases * simplify prerelease filter logic * fix basic validation checks
This commit is contained in:
parent
ebb356cc4e
commit
67aec007b3
5 changed files with 1486 additions and 1467 deletions
|
@ -41,9 +41,7 @@ describe('getAvailableVersions', () => {
|
|||
expect(availableVersions).not.toBeNull();
|
||||
|
||||
const length =
|
||||
os.platform() === 'win32'
|
||||
? manifestData.length - 1
|
||||
: manifestData.length + 1;
|
||||
os.platform() === 'win32' ? manifestData.length : manifestData.length + 2;
|
||||
expect(availableVersions.length).toBe(length);
|
||||
}, 10_000);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue