mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
Changed test in workflow from 13.0.2 to 11.0.10
This commit is contained in:
parent
e1f157b4c6
commit
74d577bb95
3 changed files with 13 additions and 16 deletions
26
.github/workflows/workflow.yml
vendored
26
.github/workflows/workflow.yml
vendored
|
@ -34,17 +34,17 @@ jobs:
|
|||
- name: Clear tool cache (Windows)
|
||||
if: runner.os == 'windows'
|
||||
run: move "${{ runner.tool_cache }}" "${{ runner.tool_cache }}.old"
|
||||
- name: Setup Java 13
|
||||
- name: Setup Java 11
|
||||
id: setup-java
|
||||
uses: ./
|
||||
with:
|
||||
java-version: 13.0.2
|
||||
- name: Verify Java 13
|
||||
java-version: 11.0.10
|
||||
- name: Verify Java 11
|
||||
if: runner.os != 'windows'
|
||||
run: __tests__/verify-java.sh 13.0.2 "${{ steps.setup-java.outputs.path }}" "${{ steps.setup-java.outputs.version }}"
|
||||
run: __tests__/verify-java.sh 11.0.10 "${{ steps.setup-java.outputs.path }}" "${{ steps.setup-java.outputs.version }}"
|
||||
- name: Verify Java 13 (Windows)
|
||||
if: runner.os == 'windows'
|
||||
run: __tests__/verify-java.ps1 13.0.2 "${{ steps.setup-java.outputs.path }}" "${{ steps.setup-java.outputs.version }}"
|
||||
run: __tests__/verify-java.ps1 11.0.10 "${{ steps.setup-java.outputs.path }}" "${{ steps.setup-java.outputs.version }}"
|
||||
|
||||
test-proxy:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -62,13 +62,13 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- name: Clear tool cache
|
||||
run: rm -rf $RUNNER_TOOL_CACHE/*
|
||||
- name: Setup Java 13
|
||||
- name: Setup Java 11
|
||||
id: setup-java
|
||||
uses: ./
|
||||
with:
|
||||
java-version: 13.0.2
|
||||
- name: Verify Java 13
|
||||
run: __tests__/verify-java.sh 13.0.2 "${{ steps.setup-java.outputs.path }}" "${{ steps.setup-java.outputs.version }}"
|
||||
java-version: 11.0.10
|
||||
- name: Verify Java 11
|
||||
run: __tests__/verify-java.sh 11.0.10 "${{ steps.setup-java.outputs.path }}" "${{ steps.setup-java.outputs.version }}"
|
||||
|
||||
test-bypass-proxy:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -79,10 +79,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- name: Clear tool cache
|
||||
run: rm -rf $RUNNER_TOOL_CACHE/*
|
||||
- name: Setup Java 13
|
||||
- name: Setup Java 11
|
||||
id: setup-java
|
||||
uses: ./
|
||||
with:
|
||||
java-version: 13.0.2
|
||||
- name: Verify Java 13
|
||||
run: __tests__/verify-java.sh 13.0.2 "${{ steps.setup-java.outputs.path }}" "${{ steps.setup-java.outputs.version }}"
|
||||
java-version: 11.0.10
|
||||
- name: Verify Java 11
|
||||
run: __tests__/verify-java.sh 11.0.10 "${{ steps.setup-java.outputs.path }}" "${{ steps.setup-java.outputs.version }}"
|
||||
|
|
1
dist/setup/index.js
vendored
1
dist/setup/index.js
vendored
|
@ -33749,7 +33749,6 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
|||
maxRetries: 3
|
||||
});
|
||||
let json = '';
|
||||
core.debug(`url: ${url}`);
|
||||
const response = yield http.get(url);
|
||||
const statusCode = response.message.statusCode || 0;
|
||||
if (statusCode == 200) {
|
||||
|
|
|
@ -282,8 +282,6 @@ async function getDownloadInfo(
|
|||
});
|
||||
let json: any = '';
|
||||
|
||||
core.debug(`url: ${url}`);
|
||||
|
||||
const response = await http.get(url);
|
||||
const statusCode = response.message.statusCode || 0;
|
||||
if (statusCode == 200) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue