Skip to content

Commit

Permalink
Add CLI SNAPSHOT testing to windows pipepline
Browse files Browse the repository at this point in the history
  • Loading branch information
jedla97 committed Dec 10, 2024
1 parent 8466260 commit 9785603
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') != '' }}
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9785603

Please sign in to comment.