Skip to content

Commit 3d68fd9

Browse files
authored
chore: update to Quarkus 3.1.0.CR1 (#596)
Also make it possible to specify how we determine which Quarkus version to run tests on, using a JQ expression to extract the latest Quarkus version for a given registry stream.
1 parent 5773784 commit 3d68fd9

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

.github/workflows/build-for-quarkus-version.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build with specific Quarkus version
33
on:
44
workflow_call:
55
inputs:
6-
quarkus-version:
6+
quarkus-version-jq-cmd:
77
type: string
88
required: true
99
java-version:
@@ -32,11 +32,16 @@ jobs:
3232
java-version: ${{ inputs.java-version }}
3333
cache: 'maven'
3434

35-
- name: Quarkus version
36-
run: echo ${{inputs.quarkus-version}}
35+
- name: Get Quarkus version
36+
id: get-quarkus-version
37+
uses: sergeysova/jq-action@v2
38+
with:
39+
cmd: curl https://registry.quarkus.io/client/platforms | jq '${{inputs.quarkus-version-jq-cmd}}'
3740

3841
- name: Change Quarkus version
39-
run: mvn versions:set-property -Dproperty=quarkus.version -DnewVersion=${{inputs.quarkus-version}}
42+
run: |
43+
echo "Using Quarkus ${{ steps.get-quarkus-version.outputs.value }}"
44+
mvn versions:set-property -Dproperty=quarkus.version -DnewVersion=${{ steps.get-quarkus-version.outputs.value }}
4045
4146
- name: Get Date
4247
id: get-date

.github/workflows/build.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,16 @@ on:
2323
- '.all-contributorsrc'
2424

2525
jobs:
26-
latest-quarkus-version:
27-
runs-on: ubuntu-latest
28-
outputs:
29-
quarkus_version: ${{ steps.latest-quarkus-version.outputs.value }}
30-
steps:
31-
- id: latest-quarkus-version
32-
uses: sergeysova/jq-action@v2
33-
with:
34-
cmd: curl https://registry.quarkus.io/client/platforms | jq '.platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version'
35-
36-
build-for-latest-quarkus-version:
37-
needs:
38-
- latest-quarkus-version
26+
build-with-quarkus-version:
3927
strategy:
4028
matrix:
4129
java-version: [ 11, 17 ]
30+
quarkus-version-jq-cmd:
31+
- '.platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version'
32+
- '.platforms[0].streams[] | select(.id == "3.1") | .releases[0].version'
4233
uses: ./.github/workflows/build-for-quarkus-version.yml
4334
with:
44-
quarkus-version: ${{ needs.latest-quarkus-version.outputs.quarkus_version }}
35+
quarkus-version-jq-cmd: ${{ matrix.quarkus-version-jq-cmd }}
4536
java-version: ${{ matrix.java-version }}
4637
branch: main
4738
native-modules: "integration-tests"

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<packaging>pom</packaging>
1313
<name>Quarkus - Operator SDK - Parent</name>
1414
<properties>
15-
<quarkus.version>3.0.3.Final</quarkus.version>
15+
<quarkus.version>3.1.0.CR1</quarkus.version>
1616
<java-operator-sdk.version>4.3.3</java-operator-sdk.version>
1717
</properties>
1818

0 commit comments

Comments
 (0)