Files
setup-java/__tests__/distributors/liberica-installer.test.ts
root 1d04883fcc
Some checks failed
Basic validation / Basic validation (push) Failing after 0s
Check dist/ / Check dist/ (push) Failing after 0s
Licensed / Licensed (push) Failing after 0s
Validate cache with cache-dependency-path option / gradle1-save (macos-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-save (ubuntu-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-save (windows-latest) (push) Has been cancelled
Validate cache / gradle-save (macos-latest) (push) Has been cancelled
Validate cache / gradle-save (ubuntu-latest) (push) Has been cancelled
Validate cache / gradle-save (windows-latest) (push) Has been cancelled
Validate cache / maven-save (macos-latest) (push) Has been cancelled
Validate cache / maven-save (ubuntu-latest) (push) Has been cancelled
Validate cache / maven-save (windows-latest) (push) Has been cancelled
Validate cache / sbt-save (macos-latest) (push) Has been cancelled
Validate cache / sbt-save (ubuntu-latest) (push) Has been cancelled
Validate cache / sbt-save (windows-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Adopt (macos-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Adopt (ubuntu-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Adopt (windows-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Zulu (macos-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Zulu (ubuntu-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Zulu (windows-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Eclipse Temurin (macos-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Eclipse Temurin (ubuntu-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Eclipse Temurin (windows-latest) (push) Has been cancelled
Validate publishing functionality / Validate settings.xml (macos-latest) (push) Has been cancelled
Validate publishing functionality / Validate settings.xml (ubuntu-latest) (push) Has been cancelled
Validate publishing functionality / Validate settings.xml (windows-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml is overwritten if flag is true (macos-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml is overwritten if flag is true (ubuntu-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml is overwritten if flag is true (windows-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml is not overwritten if flag is false (macos-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml is not overwritten if flag is false (ubuntu-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml is not overwritten if flag is false (windows-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml in custom location (macos-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml in custom location (ubuntu-latest) (push) Has been cancelled
Validate publishing functionality / settings.xml in custom location (windows-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-restore (macos-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-restore (ubuntu-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-restore (windows-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle2-restore (macos-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle2-restore (ubuntu-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle2-restore (windows-latest) (push) Has been cancelled
Validate cache / gradle-restore (macos-latest) (push) Has been cancelled
Validate cache / gradle-restore (ubuntu-latest) (push) Has been cancelled
Validate cache / gradle-restore (windows-latest) (push) Has been cancelled
Validate cache / maven-restore (macos-latest) (push) Has been cancelled
Validate cache / maven-restore (ubuntu-latest) (push) Has been cancelled
Validate cache / maven-restore (windows-latest) (push) Has been cancelled
Validate cache / sbt-restore (macos-latest) (push) Has been cancelled
Validate cache / sbt-restore (ubuntu-latest) (push) Has been cancelled
Validate cache / sbt-restore (windows-latest) (push) Has been cancelled
Update configuration files / Update configuration files (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
Validate Java e2e / adopt 11 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / adopt 17 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / adopt 8 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / adopt-openj9 11 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / adopt-openj9 17 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / adopt-openj9 8 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / corretto 11 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / corretto 17 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / corretto 8 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / dragonwell 11 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / dragonwell 17 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / dragonwell 8 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / liberica 11 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / liberica 17 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / liberica 8 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / microsoft 11 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / microsoft 17 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / microsoft 8 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / oracle 20 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / semeru 11 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / semeru 17 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / semeru 8 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / temurin 11 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / temurin 17 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / temurin 8 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / zulu 11 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / zulu 17 (jdk-x64) - ubuntu-latest (push) Failing after 2s
Validate Java e2e / zulu 8 (jdk-x64) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / corretto version (should be from input) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / microsoft version (should be from input) - ubuntu-latest (push) Failing after 3s
Validate Java e2e / temurin version (should be from input) - ubuntu-latest (push) Failing after 4s
Validate Java e2e / corretto version from file X - ubuntu-latest (push) Failing after 3s
Validate Java e2e / liberica version from file X - ubuntu-latest (push) Failing after 3s
Validate Java e2e / microsoft version from file X - ubuntu-latest (push) Failing after 3s
Validate Java e2e / temurin version from file X - ubuntu-latest (push) Failing after 3s
Validate Java e2e / zulu version from file X - ubuntu-latest (push) Failing after 3s
Validate Java e2e / adopt version from file X.Y.Z - ubuntu-latest (push) Failing after 3s
Validate Java e2e / adopt-openj9 version from file X.Y.Z - ubuntu-latest (push) Failing after 3s
Validate Java e2e / zulu version from file X.Y.Z - ubuntu-latest (push) Failing after 3s
Validate Java e2e / adopt version from file 'openjdk64-11.0.2' - ubuntu-latest (push) Failing after 3s
Validate Java e2e / liberica version from file 'openjdk64-11.0.2' - ubuntu-latest (push) Failing after 3s
Validate Java e2e / zulu version from file 'openjdk64-11.0.2' - ubuntu-latest (push) Failing after 3s
Validate Java e2e / adopt 11 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / adopt 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / adopt 8 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / adopt 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 11 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 8 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / corretto 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / corretto 8 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 8 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft 11 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / microsoft 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / microsoft 8 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / microsoft 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / oracle 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / oracle 20 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / semeru 11 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / semeru 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / semeru 8 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / semeru 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / semeru 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / semeru 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 11 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 8 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 17 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 8 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 8 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto version (should be from input) - macos-latest (push) Has been cancelled
Validate Java e2e / corretto version (should be from input) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft version (should be from input) - macos-latest (push) Has been cancelled
Validate Java e2e / microsoft version (should be from input) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin version (should be from input) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin version (should be from input) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / corretto version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / liberica version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / liberica version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / microsoft version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / temurin version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / temurin version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / adopt version from file X.Y.Z - macos-latest (push) Has been cancelled
Validate Java e2e / adopt version from file X.Y.Z - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 version from file X.Y.Z - macos-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 version from file X.Y.Z - windows-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X.Y.Z - macos-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X.Y.Z - windows-latest (push) Has been cancelled
Validate Java e2e / adopt version from file 'openjdk64-11.0.2' - macos-latest (push) Has been cancelled
Validate Java e2e / adopt version from file 'openjdk64-11.0.2' - windows-latest (push) Has been cancelled
Validate Java e2e / liberica version from file 'openjdk64-11.0.2' - macos-latest (push) Has been cancelled
Validate Java e2e / liberica version from file 'openjdk64-11.0.2' - windows-latest (push) Has been cancelled
Validate Java e2e / zulu version from file 'openjdk64-11.0.2' - macos-latest (push) Has been cancelled
Validate Java e2e / zulu version from file 'openjdk64-11.0.2' - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell 11.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / dragonwell 11.0.13+9 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 11.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0.7+7 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 8.0.302 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 11.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0.7+7 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 8.0.302 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 11.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0.7+7 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 8.0.302 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / oracle 20.0.1 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 11.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0.7+7 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 8.0.302 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 11.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0.7+7 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 8.0.302 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 11.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0.7+7 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 8.0.302 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 11.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0.7+7 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 8.0.302 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 11.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0.7+7 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 8.0.302 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 11.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0.7+7 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 8.0.302 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / dragonwell - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / liberica - check-latest flag - macos-latest (push) Has been cancelled
Validate Java e2e / liberica - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / temurin - check-latest flag - macos-latest (push) Has been cancelled
Validate Java e2e / temurin - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / zulu - check-latest flag - macos-latest (push) Has been cancelled
Validate Java e2e / zulu - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / dragonwell - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / liberica - multiple jdks - macos-latest (push) Has been cancelled
Validate Java e2e / liberica - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / temurin - multiple jdks - macos-latest (push) Has been cancelled
Validate Java e2e / temurin - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / zulu - multiple jdks - macos-latest (push) Has been cancelled
Validate Java e2e / zulu - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 15.0.0-ea.14 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 17-ea (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 15.0.0-ea.14 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17-ea (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 15.0.0-ea.14 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 17-ea (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 17-ea (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 17-ea (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 17-ea (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 8 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 8 (jdk+fx-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jre+fx-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0 (jre-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / semeru 17.0 (jre-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / semeru 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / semeru 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0 (jre-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 8.0.242 (jdk+fx-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 8 (jre+fx-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0 (jre-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-) - windows-latest (push) Has been cancelled
Add actions/setup-java@v4.2.1
2025-09-26 13:12:49 +08:00

291 lines
7.6 KiB
TypeScript
Executable File

import {LibericaDistributions} from '../../src/distributions/liberica/installer';
import {
ArchitectureOptions,
LibericaVersion
} from '../../src/distributions/liberica/models';
import {HttpClient} from '@actions/http-client';
import os from 'os';
import manifestData from '../data/liberica.json';
describe('getAvailableVersions', () => {
let spyHttpClient: jest.SpyInstance;
beforeEach(() => {
spyHttpClient = jest.spyOn(HttpClient.prototype, 'getJson');
spyHttpClient.mockReturnValue({
statusCode: 200,
headers: {},
result: manifestData as LibericaVersion[]
});
});
afterEach(() => {
jest.resetAllMocks();
jest.clearAllMocks();
jest.restoreAllMocks();
});
it.each([
[
{
version: '11.x',
architecture: 'x86',
packageType: 'jdk',
checkLatest: false
},
'bundle-type=jdk&bitness=32&arch=x86&build-type=all'
],
[
{
version: '11-ea',
architecture: 'x86',
packageType: 'jdk',
checkLatest: false
},
'bundle-type=jdk&bitness=32&arch=x86&build-type=ea'
],
[
{
version: '16.0.2',
architecture: 'x64',
packageType: 'jdk',
checkLatest: false
},
'bundle-type=jdk&bitness=64&arch=x86&build-type=all'
],
[
{
version: '16.0.2',
architecture: 'x64',
packageType: 'jre',
checkLatest: false
},
'bundle-type=jre&bitness=64&arch=x86&build-type=all'
],
[
{
version: '8',
architecture: 'armv7',
packageType: 'jdk+fx',
checkLatest: false
},
'bundle-type=jdk-full&bitness=32&arch=arm&build-type=all'
],
[
{
version: '8',
architecture: 'aarch64',
packageType: 'jre+fx',
checkLatest: false
},
'bundle-type=jre-full&bitness=64&arch=arm&build-type=all'
]
])('build correct url for %s -> %s', async (input, urlParams) => {
const additionalParams =
'&installation-type=archive&fields=downloadUrl%2Cversion%2CfeatureVersion%2CinterimVersion%2C' +
'updateVersion%2CbuildVersion';
const distribution = new LibericaDistributions(input);
distribution['getPlatformOption'] = () => 'macos';
const buildUrl = `https://api.bell-sw.com/v1/liberica/releases?os=macos&${urlParams}${additionalParams}`;
await distribution['getAvailableVersions']();
expect(spyHttpClient.mock.calls).toHaveLength(1);
expect(spyHttpClient.mock.calls[0][0]).toBe(buildUrl);
});
type DistroArch = {
bitness: string;
arch: string;
};
it.each([
['amd64', {bitness: '64', arch: 'x86'}],
['arm64', {bitness: '64', arch: 'arm'}]
])(
'defaults to os.arch(): %s mapped to distro arch: %s',
async (osArch: string, distroArch: DistroArch) => {
jest.spyOn(os, 'arch').mockReturnValue(osArch);
const distribution = new LibericaDistributions({
version: '17',
architecture: '', // to get default value
packageType: 'jdk',
checkLatest: false
});
const additionalParams =
'&installation-type=archive&fields=downloadUrl%2Cversion%2CfeatureVersion%2CinterimVersion%2C' +
'updateVersion%2CbuildVersion';
distribution['getPlatformOption'] = () => 'macos';
const buildUrl = `https://api.bell-sw.com/v1/liberica/releases?os=macos&bundle-type=jdk&bitness=${distroArch.bitness}&arch=${distroArch.arch}&build-type=all${additionalParams}`;
await distribution['getAvailableVersions']();
expect(spyHttpClient.mock.calls).toHaveLength(1);
expect(spyHttpClient.mock.calls[0][0]).toBe(buildUrl);
}
);
it('load available versions', async () => {
const distribution = new LibericaDistributions({
version: '11',
architecture: 'x64',
packageType: 'jdk',
checkLatest: false
});
const availableVersions = await distribution['getAvailableVersions']();
expect(availableVersions).toEqual(manifestData);
});
});
describe('getArchitectureOptions', () => {
it.each([
['x86', {bitness: '32', arch: 'x86'}],
['x64', {bitness: '64', arch: 'x86'}],
['armv7', {bitness: '32', arch: 'arm'}],
['aarch64', {bitness: '64', arch: 'arm'}],
['ppc64le', {bitness: '64', arch: 'ppc'}]
] as [string, ArchitectureOptions][])(
'parse architecture %s -> %s',
(input, expected) => {
const distributions = new LibericaDistributions({
architecture: input,
checkLatest: false,
packageType: '',
version: ''
});
expect(distributions['getArchitectureOptions']()).toEqual(expected);
}
);
it.each(['armv6', 's390x'])('not support architecture %s', input => {
const distributions = new LibericaDistributions({
architecture: input,
checkLatest: false,
packageType: '',
version: ''
});
expect(() => distributions['getArchitectureOptions']()).toThrow(
/Architecture '\w+' is not supported\. Supported architectures: .*/
);
});
});
describe('findPackageForDownload', () => {
let distribution: LibericaDistributions;
beforeEach(() => {
distribution = new LibericaDistributions({
version: '',
architecture: 'x64',
packageType: 'jdk',
checkLatest: false
});
distribution['getAvailableVersions'] = async () => manifestData;
});
it.each([
['8', '8.0.302+8'],
['11.x', '11.0.12+7'],
['8.0', '8.0.302+8'],
['11.0.x', '11.0.12+7'],
['15', '15.0.2+10'],
['15.0', '15.0.2+10'],
['15.0.0', '15.0.0+36'],
['8.0.232', '8.0.232+10'],
['8.0.232+9', '8.0.232+9'],
['15.0.2+8', '15.0.2+8'],
['15.0.2+10', '15.0.2+10']
])('version is %s -> %s', async (input, expected) => {
const result = await distribution['findPackageForDownload'](input);
expect(result.version).toBe(expected);
});
it('should throw an error', async () => {
await expect(distribution['findPackageForDownload']('17')).rejects.toThrow(
/Could not find satisfied version for semver */
);
});
});
describe('getPlatformOption', () => {
const distributions = new LibericaDistributions({
architecture: 'x64',
version: '11',
packageType: 'jdk',
checkLatest: false
});
it.each([
['linux', 'linux'],
['darwin', 'macos'],
['win32', 'windows'],
['cygwin', 'windows'],
['sunos', 'solaris']
])('os version %s -> %s', (input, expected) => {
const actual = distributions['getPlatformOption'](input as NodeJS.Platform);
expect(actual).toEqual(expected);
});
it.each(['aix', 'android', 'freebsd', 'openbsd', 'netbsd'])(
'not support os version %s',
input => {
expect(() =>
distributions['getPlatformOption'](input as NodeJS.Platform)
).toThrow(/Platform '\w+' is not supported\. Supported platforms: .+/);
}
);
});
describe('convertVersionToSemver', () => {
const distributions = new LibericaDistributions({
architecture: 'x64',
version: '11',
packageType: 'jdk',
checkLatest: false
});
it.each([
[
{
featureVersion: 11,
interimVersion: 0,
updateVersion: 12,
buildVersion: 7
},
'11.0.12+7'
],
[
{
featureVersion: 11,
interimVersion: 0,
updateVersion: 12,
buildVersion: 0
},
'11.0.12'
],
[
{
featureVersion: 11,
interimVersion: 0,
updateVersion: 0,
buildVersion: 13
},
'11.0.0+13'
]
])('%s -> %s', (input, expected) => {
const actual = distributions['convertVersionToSemver']({
downloadUrl: '',
version: '',
...input
});
expect(actual).toEqual(expected);
});
});