This commit is contained in:
Julien Dubois
2023-10-17 11:13:29 +02:00
committed by GitHub
3 changed files with 7 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ steps:
#### Supported version syntax
The `java-version` input supports an exact version or a version range using [SemVer](https://semver.org/) notation:
- major versions: `8`, `11`, `16`, `17`
- major versions: `8`, `11`, `16`, `17`, `21`
- more specific versions: `17.0`, `11.0`, `11.0.4`, `8.0.232`, `8.0.282+8`
- early access (EA) versions: `15-ea`, `15.0.0-ea`, `15.0.0-ea.2`, `15.0.0+2-ea`

View File

@@ -22,6 +22,11 @@ describe('findPackageForDownload', () => {
});
it.each([
[
'21',
'21',
'https://download.oracle.com/java/21/latest/jdk-21_{{OS_TYPE}}-x64_bin.{{ARCHIVE_TYPE}}'
],
[
'20',
'20',

View File

@@ -121,7 +121,7 @@ steps:
- uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '17'
java-version: '21'
- run: java -cp java HelloWorldApp
```