mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Mock always getLinuxOS
This commit is contained in:
parent
3aec06c05e
commit
bdfd06e951
1 changed files with 2 additions and 4 deletions
|
@ -114,16 +114,14 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
|
||||||
dependencyFile
|
dependencyFile
|
||||||
);
|
);
|
||||||
|
|
||||||
|
computeKeysSpy.mockImplementation(() => Promise.resolve('Ubuntu-20.4'));
|
||||||
|
|
||||||
if (process.env['RUNNER_OS'] === 'linux') {
|
if (process.env['RUNNER_OS'] === 'linux') {
|
||||||
Object.defineProperty(utils, 'IS_LINUX', {
|
Object.defineProperty(utils, 'IS_LINUX', {
|
||||||
value: () => {
|
value: () => {
|
||||||
jest.fn().mockReturnValue(true);
|
jest.fn().mockReturnValue(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
computeKeysSpy.mockImplementation(() =>
|
|
||||||
Promise.resolve('Ubuntu-20.4')
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await cacheDistributor.restoreCache();
|
await cacheDistributor.restoreCache();
|
||||||
|
|
Loading…
Add table
Reference in a new issue