mirror of
https://github.com/actions/setup-java.git
synced 2026-07-08 14:21:50 +00:00
Merge pull request #5 from johnoliver/copilot/fix-github-actions-job-failure
Fix Windows test failure for temurin signature verification and add e2e coverage
This commit is contained in:
commit
c607d20ead
23
.github/workflows/e2e-versions.yml
vendored
23
.github/workflows/e2e-versions.yml
vendored
@ -292,6 +292,29 @@ jobs:
|
|||||||
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
setup-java-temurin-signature-verification:
|
||||||
|
name: temurin ${{ matrix.version }} signature verification - ${{ matrix.os }}
|
||||||
|
needs: setup-java-major-minor-versions
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
|
version: ['21', '17']
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: setup-java with signature verification
|
||||||
|
uses: ./
|
||||||
|
id: setup-java
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.version }}
|
||||||
|
distribution: temurin
|
||||||
|
verify-signature: true
|
||||||
|
- name: Verify Java
|
||||||
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
||||||
|
shell: bash
|
||||||
|
|
||||||
setup-java-ea-versions-sapmachine:
|
setup-java-ea-versions-sapmachine:
|
||||||
name: sapmachine ${{ matrix.version }} (jdk-x64) - ${{ matrix.os }}
|
name: sapmachine ${{ matrix.version }} (jdk-x64) - ${{ matrix.os }}
|
||||||
needs: setup-java-major-minor-versions
|
needs: setup-java-major-minor-versions
|
||||||
|
|||||||
@ -294,6 +294,7 @@ describe('downloadTool', () => {
|
|||||||
let spyExtractJdkFile: jest.SpyInstance;
|
let spyExtractJdkFile: jest.SpyInstance;
|
||||||
let spyCacheDir: jest.SpyInstance;
|
let spyCacheDir: jest.SpyInstance;
|
||||||
let spyReadDirSync: jest.SpyInstance;
|
let spyReadDirSync: jest.SpyInstance;
|
||||||
|
let spyRenameWinArchive: jest.SpyInstance;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
spyDownloadTool = jest.spyOn(tc, 'downloadTool');
|
spyDownloadTool = jest.spyOn(tc, 'downloadTool');
|
||||||
@ -306,6 +307,8 @@ describe('downloadTool', () => {
|
|||||||
spyCacheDir.mockResolvedValue('/tmp/toolcache');
|
spyCacheDir.mockResolvedValue('/tmp/toolcache');
|
||||||
spyReadDirSync = jest.spyOn(fs, 'readdirSync');
|
spyReadDirSync = jest.spyOn(fs, 'readdirSync');
|
||||||
spyReadDirSync.mockReturnValue(['jdk-17'] as any);
|
spyReadDirSync.mockReturnValue(['jdk-17'] as any);
|
||||||
|
spyRenameWinArchive = jest.spyOn(util, 'renameWinArchive');
|
||||||
|
spyRenameWinArchive.mockReturnValue('/tmp/jdk.tar.gz.zip');
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user