mirror of
https://github.com/actions/setup-java.git
synced 2026-07-08 14:21:50 +00:00
Add regression test for hyphen separator in distribution prefix
This commit is contained in:
parent
bf1fdd3036
commit
3849c25203
@ -247,6 +247,7 @@ describe('getVersionFromFileContent', () => {
|
|||||||
describe('.java-version', () => {
|
describe('.java-version', () => {
|
||||||
it.each([
|
it.each([
|
||||||
['temurin-21.0.5', '21.0.5', 'temurin'],
|
['temurin-21.0.5', '21.0.5', 'temurin'],
|
||||||
|
['temurin-17', '17', 'temurin'], // hyphen separator is not captured into the distribution
|
||||||
['temurin-21.0.5+11.0.LTS', '21.0.5+11.0.LTS', 'temurin'],
|
['temurin-21.0.5+11.0.LTS', '21.0.5+11.0.LTS', 'temurin'],
|
||||||
['zulu64-8.0.202', '8.0.202', 'zulu'],
|
['zulu64-8.0.202', '8.0.202', 'zulu'],
|
||||||
['temurin64-17', '17', 'temurin'],
|
['temurin64-17', '17', 'temurin'],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user