Skip to content

Commit

Permalink
Fix JDK 21 selection (#21)
Browse files Browse the repository at this point in the history
* Fix JDK 21 selection

* Fix lint
  • Loading branch information
ofalvai authored Feb 7, 2024
1 parent 597c981 commit 32635b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions e2e/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ workflows:
inputs:
- set_java_version: 17

test_java21:
envs:
- EXPECTED_VERSION: 21
after_run:
- _check_version
steps:
- path::./:
title: Execute step
inputs:
- set_java_version: 21

_check_version:
summary: Compares current JDK version to $EXPECTED_VERSION
description: Based on https://stackoverflow.com/a/56243046
Expand Down
2 changes: 1 addition & 1 deletion step.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

type Input struct {
JavaVersion string `env:"set_java_version,opt[17,11,8]"`
JavaVersion string `env:"set_java_version,opt[21,17,11,8]"`
}

type Config struct {
Expand Down

0 comments on commit 32635b3

Please sign in to comment.