mirror of
https://github.com/actions/setup-java.git
synced 2026-10-16 08:21:32 +00:00
Add Red Hat Build of OpenJDK support (#1241)
* Add Red Hat Build of OpenJDK support Co-authored-by: Copilot App <[email protected]> * Fix Red Hat tests on Windows Co-authored-by: Copilot <[email protected]> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> * Update compiled Red Hat distribution Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot App <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]>
This commit is contained in:
co-authored by
Copilot App
Copilot Autofix powered by AI
parent
5f75b27283
commit
416c6d1e8a
@@ -405,6 +405,18 @@ describe('extractJdkFile', () => {
|
||||
expect(io.which).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('extracts xz-compressed tarballs with xz tar flags', async () => {
|
||||
(tc.extractTar as jest.Mock).mockResolvedValue('/extracted' as never);
|
||||
|
||||
await expect(extractJdkFile('/tmp/jdk.tar.xz')).resolves.toBe('/extracted');
|
||||
expect(tc.extractTar).toHaveBeenCalledWith(
|
||||
'/tmp/jdk.tar.xz',
|
||||
undefined,
|
||||
'xJ'
|
||||
);
|
||||
expect(io.which).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('uses the bundled tar.exe for zip archives on Windows', async () => {
|
||||
setPlatform('win32');
|
||||
const systemRoot = path.join(workDir, 'Windows');
|
||||
|
||||
Reference in New Issue
Block a user