From dd0ca6e0cf6905575f6b66a2fab60746bb88aa62 Mon Sep 17 00:00:00 2001 From: Daniel Berecz Date: Wed, 11 Sep 2024 14:45:49 +0200 Subject: [PATCH] Updating GH actions to run quarkus cli on windows --- .github/workflows/ci.yml | 7 ++++++- .github/workflows/daily.yaml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a56920bed1..4546ae7f0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -261,6 +261,11 @@ jobs: - name: Extract Maven Repo shell: bash run: tar -xzf maven-repo.tgz -C ~ + - name: Install Quarkus CLI + run: | + echo "java -jar ~/.m2/repository/io/quarkus/quarkus-cli/999-SNAPSHOT/quarkus-cli-999-SNAPSHOT-runner.jar %*" > quarkus-dev-cli.bat + # Launches in powershell + .\quarkus-dev-cli.bat version - name: Build in JVM mode shell: bash run: | @@ -270,7 +275,7 @@ jobs: MODULES_MAVEN_PARAM="-pl ${MODULES_ARG}" fi - mvn -B --no-transfer-progress -fae -s .github/mvn-settings.xml clean verify -Dall-modules $MODULES_MAVEN_PARAM -am -DexcludedGroups=long-running + mvn -B --no-transfer-progress -fae -s .github/mvn-settings.xml clean verify -Dall-modules $MODULES_MAVEN_PARAM -am -DexcludedGroups=long-running -Dinclude.quarkus-cli-tests -Dts.quarkus.cli.cmd="${PWD}/quarkus-dev-cli" - name: Detect flaky tests id: flaky-test-detector if: ${{ hashFiles('**/flaky-run-report.json') != '' }} diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index 57fb4a71f3..214bffc827 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -165,10 +165,15 @@ jobs: - name: Extract Maven Repo shell: bash run: tar -xzf maven-repo.tgz -C ~ + - name: Install Quarkus CLI + run: | + echo "java -jar ~/.m2/repository/io/quarkus/quarkus-cli/999-SNAPSHOT/quarkus-cli-999-SNAPSHOT-runner.jar %*" > quarkus-dev-cli.bat + # Launches in powershell + .\quarkus-dev-cli.bat version - name: Build in JVM mode shell: bash run: | - mvn -B --no-transfer-progress -fae -s .github/mvn-settings.xml clean verify + mvn -B --no-transfer-progress -fae -s .github/mvn-settings.xml clean verify -Dinclude.quarkus-cli-tests -Dts.quarkus.cli.cmd="${PWD}/quarkus-dev-cli" - name: Zip Artifacts shell: bash if: failure()