From 97856033bbd782bc36d76938bd58c6665be1e216 Mon Sep 17 00:00:00 2001 From: Jakub Jedlicka Date: Tue, 10 Dec 2024 23:50:41 +0100 Subject: [PATCH] Add CLI SNAPSHOT testing to windows pipepline --- .github/workflows/ci.yml | 11 ++++++++++- .github/workflows/daily.yaml | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71af4bc0a..3e24870c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -247,10 +247,19 @@ jobs: java-version: ${{ matrix.java }} check-latest: true cache: 'maven' + - name: Install Quarkus CLI + shell: pwsh + run: | + Invoke-WebRequest https://s01.oss.sonatype.org/content/repositories/snapshots/io/quarkus/quarkus-cli/999-SNAPSHOT/quarkus-cli-999-20241209.023002-1284-runner.jar -OutFile "%cd%\quarkus-cli-999-SNAPSHOT-runner.jar" + New-Item -Path "%cd%\quarkus-dev-cli.bat" -ItemType File + Set-Content -Path "%cd%\quarkus-dev-cli.bat" -Value 'java -jar "%cd%\quarkus-cli-999-SNAPSHOT-runner.jar" %*' + get-content "%cd%\quarkus-dev-cli.bat" + cd "%cd%" + ./quarkus-dev-cli.bat version - name: Build in JVM mode shell: bash run: | - mvn -B --no-transfer-progress -fae -s .github/quarkus-snapshots-mvn-settings.xml clean verify ${{ matrix.module-mvn-args }} -am + mvn -B --no-transfer-progress -fae -s .github/quarkus-snapshots-mvn-settings.xml clean verify ${{ matrix.module-mvn-args }} -am -Dinclude.quarkus-cli-tests -Dts.quarkus.cli.cmd=%cd%\quarkus-dev-cli.bat -Dgh-action-disable-on-win - 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 bc4f414ae..d4377a4bf 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -92,10 +92,19 @@ jobs: distribution: 'temurin' java-version: ${{ matrix.java }} check-latest: true + - name: Install Quarkus CLI + shell: pwsh + run: | + Invoke-WebRequest https://s01.oss.sonatype.org/content/repositories/snapshots/io/quarkus/quarkus-cli/999-SNAPSHOT/quarkus-cli-999-20241209.023002-1284-runner.jar -OutFile "%cd%\quarkus-cli-999-SNAPSHOT-runner.jar" + New-Item -Path "%cd%\quarkus-dev-cli.bat" -ItemType File + Set-Content -Path "%cd%\quarkus-dev-cli.bat" -Value 'java -jar "%cd%\quarkus-cli-999-SNAPSHOT-runner.jar" %*' + get-content "%cd%\quarkus-dev-cli.bat" + cd "%cd%" + ./quarkus-dev-cli.bat version - name: Build in JVM mode shell: bash run: | - mvn -B --no-transfer-progress -fae -s .github/quarkus-snapshots-mvn-settings.xml clean verify + mvn -B --no-transfer-progress -fae -s .github/quarkus-snapshots-mvn-settings.xml clean verify -Dinclude.quarkus-cli-tests -Dts.quarkus.cli.cmd=%cd%\quarkus-dev-cli.bat -Dgh-action-disable-on-win - name: Zip Artifacts shell: bash if: failure()