|
44 | 44 | description: 'Quarkus PR number to use to run a QOSDK build with' |
45 | 45 | type: string |
46 | 46 | required: false |
| 47 | + fkc-pr: |
| 48 | + description: 'Fabric8 client PR number to use to run a QOSDK build with' |
| 49 | + type: string |
| 50 | + required: false |
47 | 51 | java-version: |
48 | 52 | description: 'Java version to build with' |
49 | 53 | type: string |
@@ -129,6 +133,25 @@ jobs: |
129 | 133 | mvn -Dquickly |
130 | 134 | cd - |
131 | 135 |
|
| 136 | + - name: Check-out Fabric8 client PR if requested |
| 137 | + uses: actions/checkout@v4 |
| 138 | + if: "${{ inputs.fkc-pr != '' }}" |
| 139 | + with: |
| 140 | + repository: fabric8io/kubernetes-client |
| 141 | + path: fkc |
| 142 | + |
| 143 | + - name: Build Quarkus PR if requested |
| 144 | + if: "${{ inputs.fkc-pr != '' }}" |
| 145 | + id: build-fkc-pr |
| 146 | + run: | |
| 147 | + cd fkc |
| 148 | + git fetch origin pull/${{ github.event.inputs.fkc-pr }}/head:pr-to-check |
| 149 | + git switch pr-to-check |
| 150 | + ./update-version.sh 999.${{ github.event.inputs.fkc-pr }}-SNAPSHOT |
| 151 | + echo "f8_pr_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT |
| 152 | + mvn clean install -DskipTests |
| 153 | + cd - |
| 154 | +
|
132 | 155 | - name: Retrieve Quarkus version from platform |
133 | 156 | if: "${{ inputs.quarkus-version == '' && inputs.quarkus-pr == ''}}" |
134 | 157 | id: get-quarkus-version |
@@ -166,6 +189,12 @@ jobs: |
166 | 189 | echo "Using Quarkus ${{ steps.quarkus-version.outputs.quarkus_version }}" |
167 | 190 | mvn versions:set-property -P'${{steps.set-mvn-profiles.outputs.maven_profiles}}' -Dproperty=quarkus.version -DnewVersion=${{ steps.quarkus-version.outputs.quarkus_version }} |
168 | 191 |
|
| 192 | + - name: Change Fabric8 client version |
| 193 | + if: "${{ inputs.fkc-pr != '' }}" |
| 194 | + run: | |
| 195 | + echo "Using Fabric8 ${{ steps.build-fkc-pr.outputs.f8_pr_version }}" |
| 196 | + mvn versions:set-property -Dproperty=fabric8-client.version -DnewVersion=${{ steps.build-fkc-pr.outputs.f8_pr_version }} |
| 197 | +
|
169 | 198 | - name: Output versions being used |
170 | 199 | run: | |
171 | 200 | echo "QOSDK version: $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" |
|
0 commit comments