Skip to content

Commit e554f69

Browse files
Merge remote-tracking branch 'origin/main' into dependabot/npm_and_yarn/ts-jest-29.3.2 and fixed check failures
2 parents 70112ae + 6ed2c67 commit e554f69

File tree

7 files changed

+197
-886
lines changed

7 files changed

+197
-886
lines changed

.github/workflows/e2e-cache.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
python-version: pypy-3.10-v7.x
8383
- os: ubuntu-22.04-arm
8484
python-version: pypy-3.11-v7.x
85+
- os: ubuntu-22.04-arm
86+
python-version: pypy-3.10-v7.x
8587
steps:
8688
- uses: actions/checkout@v4
8789
- name: Setup Python

.licenses/npm/lru-cache.dep.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/yallist.dep.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

__tests__/install-python.test.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,29 @@ import * as tc from '@actions/tool-cache';
88

99
jest.mock('@actions/http-client');
1010
jest.mock('@actions/tool-cache');
11-
12-
const mockManifest = [{version: '1.0.0'}];
11+
jest.mock('@actions/tool-cache', () => ({
12+
getManifestFromRepo: jest.fn()
13+
}));
14+
const mockManifest = [
15+
{
16+
version: '1.0.0',
17+
stable: true,
18+
files: [
19+
{
20+
filename: 'tool-v1.0.0-linux-x64.tar.gz',
21+
platform: 'linux',
22+
arch: 'x64',
23+
download_url: 'https://example.com/tool-v1.0.0-linux-x64.tar.gz'
24+
}
25+
]
26+
}
27+
];
1328

1429
describe('getManifest', () => {
30+
beforeEach(() => {
31+
jest.resetAllMocks();
32+
});
33+
1534
it('should return manifest from repo', async () => {
1635
(tc.getManifestFromRepo as jest.Mock).mockResolvedValue(mockManifest);
1736
const manifest = await getManifest();

0 commit comments

Comments
 (0)