mirror of
https://github.com/actions/setup-go.git
synced 2025-06-28 07:53:43 +00:00
mock os instead of system
This commit is contained in:
parent
79b62adb05
commit
241a335117
3 changed files with 20 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
|||
import * as os from 'os';
|
||||
let os = require('os');
|
||||
|
||||
export function getPlatform(): string {
|
||||
// darwin and linux match already
|
||||
|
@ -25,9 +25,9 @@ export function getArch(): string {
|
|||
case 'x64':
|
||||
arch = 'amd64';
|
||||
break;
|
||||
case 'ppc':
|
||||
arch = 'ppc64';
|
||||
break;
|
||||
// case 'ppc':
|
||||
// arch = 'ppc64';
|
||||
// break;
|
||||
case 'x32':
|
||||
arch = '386';
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue