mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 02:16:45 +00:00
Make tests work on macOS and Windows
This commit is contained in:
parent
46d790322c
commit
43a44e93dd
3 changed files with 11 additions and 21 deletions
|
@ -86,12 +86,11 @@ export class OracleDistribution extends JavaBase {
|
|||
return { url: fileUrl, version: range };
|
||||
}
|
||||
|
||||
private getPlatform(platform: NodeJS.Platform = process.platform): OsVersions {
|
||||
public getPlatform(platform: NodeJS.Platform = process.platform): OsVersions {
|
||||
switch (platform) {
|
||||
case 'darwin':
|
||||
return 'macos';
|
||||
case 'win32':
|
||||
case 'cygwin':
|
||||
return 'windows';
|
||||
case 'linux':
|
||||
return 'linux';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue