MCPcopy Index your code
hub / github.com/actions/setup-java / getPlatform

Method getPlatform

src/distributions/oracle/installer.ts:118–131  ·  view source on GitHub ↗
(platform: NodeJS.Platform = process.platform)

Source from the content-addressed store, hash-verified

116 }
117
118 public getPlatform(platform: NodeJS.Platform = process.platform): OsVersions {
119 switch (platform) {
120 case 'darwin':
121 return 'macos';
122 case 'win32':
123 return 'windows';
124 case 'linux':
125 return 'linux';
126 default:
127 throw new Error(
128 `Platform '${platform}' is not supported. Supported platforms: 'linux', 'macos', 'windows'`
129 );
130 }
131 }
132}

Calls

no outgoing calls

Tested by

no test coverage detected