mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
add support for multiple jdks
This commit is contained in:
parent
8048bbee47
commit
b6bae374b1
10 changed files with 2852 additions and 96 deletions
|
@ -244,6 +244,10 @@ describe('setupJava', () => {
|
|||
expect(spyGetToolcachePath).toHaveBeenCalled();
|
||||
expect(spyCoreAddPath).toHaveBeenCalled();
|
||||
expect(spyCoreExportVariable).toHaveBeenCalled();
|
||||
expect(spyCoreExportVariable).toHaveBeenCalledWith(
|
||||
`JAVA_HOME_${input.version}_${input.architecture.toLocaleUpperCase()}`,
|
||||
expected.path
|
||||
);
|
||||
expect(spyCoreSetOutput).toHaveBeenCalled();
|
||||
expect(spyCoreInfo).toHaveBeenCalledWith('Trying to resolve the latest version from remote');
|
||||
expect(spyCoreInfo).toHaveBeenCalledWith(`Resolved latest version as ${expected.version}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue