Skip to content

Commit 0034946

Browse files
committed
refactor: integrate Quarkus PR building in default build workflow
Signed-off-by: Chris Laprun <[email protected]>
1 parent 304f953 commit 0034946

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

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

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,29 @@ on:
1212
java-version:
1313
type: string
1414
required: true
15+
default: '17'
1516
branch:
1617
type: string
1718
required: true
19+
default: 'main'
1820
repository:
1921
type: string
2022
default: ''
2123
native-modules:
2224
type: string
2325
required: true
26+
default: 'integration-tests,samples'
27+
workflow_dispatch:
28+
quarkus-pr:
29+
type: string
30+
required: true
2431

2532
jobs:
2633
build:
2734
runs-on: ubuntu-latest
2835

2936
steps:
30-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3138
with:
3239
ref: ${{ inputs.branch }}
3340
repository: ${{ inputs.repository }}
@@ -39,6 +46,22 @@ jobs:
3946
java-version: ${{ inputs.java-version }}
4047
cache: 'maven'
4148

49+
- name: Check-out Quarkus if building from PR is requested
50+
uses: actions/checkout@v4
51+
if: "${{ inputs.quarkus-pr != '' }}"
52+
with:
53+
repository: quarkusio/quarkus
54+
path: quarkus
55+
56+
- name: Build Quarkus PR if requested
57+
if: "${{ inputs.quarkus-pr != '' }}"
58+
run: |
59+
cd quarkus
60+
git fetch origin pull/${{ github.event.inputs.quarkus_pr }}/head:pr-to-check
61+
git switch pr-to-check
62+
mvn -Dquickly
63+
cd -
64+
4265
- name: Retrieve Quarkus version from platform
4366
if: "${{ inputs.quarkus-version == '' }}"
4467
id: get-quarkus-version
@@ -56,6 +79,9 @@ jobs:
5679
if [[ -n "${{ inputs.quarkus-version }}" ]]; then
5780
quarkus_version="${{ inputs.quarkus-version }}"
5881
fi
82+
if [[ -n "${{ inputs.quarkus-pr }}" ]]; then
83+
quarkus_version='999-SNAPSHOT'
84+
fi
5985
echo "quarkus_version=${quarkus_version}" >> $GITHUB_OUTPUT
6086
6187
- name: Change Quarkus version

0 commit comments

Comments
 (0)