From c569e64c0b240dbe83c17275c08f6717d4bfc2fa Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Tue, 1 Aug 2023 14:11:14 +0200 Subject: [PATCH] Add missing `break` statement (fixes #54). --- .github/workflows/test.yml | 1 + dist/main/index.js | 1 + src/main.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46b4c8d..174c0a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -207,6 +207,7 @@ jobs: [[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 12 echo "JAVA_HOME: $JAVA_HOME" java --version + java --version | grep "Temurin" || exit 23 native-image --version if: runner.os != 'Windows' - name: Check Windows environment diff --git a/dist/main/index.js b/dist/main/index.js index f5b85a9..830aca6 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -71349,6 +71349,7 @@ function run() { else { throw new Error(`Mandrel requires the 'version' option (see https://github.com/graalvm/setup-graalvm/tree/main#options).`); } + break; case '': if (javaVersion === c.VERSION_DEV) { core.info(`This build is using GraalVM Community Edition. To select a specific distribution, use the 'distribution' option (see https://github.com/graalvm/setup-graalvm/tree/main#options).`); diff --git a/src/main.ts b/src/main.ts index 06ad446..4bd3467 100644 --- a/src/main.ts +++ b/src/main.ts @@ -58,6 +58,7 @@ async function run(): Promise { `Mandrel requires the 'version' option (see https://github.com/graalvm/setup-graalvm/tree/main#options).` ) } + break case '': if (javaVersion === c.VERSION_DEV) { core.info(