Skip to content

Commit 655513b

Browse files
remove logs
1 parent 50b9fe9 commit 655513b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/e2e-versions.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ jobs:
113113
foreach ($version in $versionsArr)
114114
{
115115
$envName = "JAVA_HOME_${version}_${env:RUNNER_ARCH}"
116-
Write-Host "$envName"
117-
Get-ChildItem env: | grep "$envName"
118116
$JavaVersionPath = (Get-ChildItem env: | grep "$envName").Replace("$envName", "").Trim()
119117
if (-not (Test-Path "$JavaVersionPath")) {
120118
Write-Host "$envName is not found"

__tests__/distributors/base-installer.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ describe('setupJava', () => {
245245
expect(spyCoreAddPath).toHaveBeenCalled();
246246
expect(spyCoreExportVariable).toHaveBeenCalled();
247247
expect(spyCoreSetOutput).toHaveBeenCalled();
248+
expect(spyCoreSetOutput).toHaveBeenCalledWith(
249+
`JAVA_HOME_${input.version}_${input.architecture.toUpperCase()}`
250+
);
248251
expect(spyCoreInfo).toHaveBeenCalledWith('Trying to resolve the latest version from remote');
249252
expect(spyCoreInfo).toHaveBeenCalledWith(`Resolved latest version as ${expected.version}`);
250253
expect(spyCoreInfo).toHaveBeenCalledWith('Trying to download...');

0 commit comments

Comments
 (0)