mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 23:42:13 +00:00
Fix string compare
This commit is contained in:
parent
2f31a3b56e
commit
116ddb08f5
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
|
||||||
|
|
||||||
computeKeysSpy.mockImplementation(() => Promise.resolve('Ubuntu-20.4'));
|
computeKeysSpy.mockImplementation(() => Promise.resolve('Ubuntu-20.4'));
|
||||||
|
|
||||||
if (process.env['RUNNER_OS'] === 'linux') {
|
if (process.env['RUNNER_OS']?.toLowerCase() === 'linux') {
|
||||||
Object.defineProperty(utils, 'IS_LINUX', {
|
Object.defineProperty(utils, 'IS_LINUX', {
|
||||||
value: () => {
|
value: () => {
|
||||||
jest.fn().mockReturnValue(true);
|
jest.fn().mockReturnValue(true);
|
||||||
|
@ -132,7 +132,7 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
|
||||||
|
|
||||||
await cacheDistributor.restoreCache();
|
await cacheDistributor.restoreCache();
|
||||||
|
|
||||||
if (process.env['RUNNER_OS'] === 'linux') {
|
if (process.env['RUNNER_OS']?.toLowerCase() === 'linux') {
|
||||||
expect(infoSpy).toHaveBeenCalledWith(
|
expect(infoSpy).toHaveBeenCalledWith(
|
||||||
`Cache restored from key: setup-python-${process.env['RUNNER_OS']}-Ubuntu-20.4-python-${pythonVersion}-${packageManager}-${fileHash}`
|
`Cache restored from key: setup-python-${process.env['RUNNER_OS']}-Ubuntu-20.4-python-${pythonVersion}-${packageManager}-${fileHash}`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue