Skip to content

Commit 80c2eb1

Browse files
authored
fix(ci): do not use CodeQL autobuild, build quickly with snapshots (#810)
* fix(ci): only skip CodeQL if build uses snapshot versions Signed-off-by: Chris Laprun <[email protected]> * fix(ci): do not use CodeQL autobuild, build quickly with snapshots Signed-off-by: Chris Laprun <[email protected]> * fix(ci): set up java Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Chris Laprun <[email protected]>
1 parent e5d19c3 commit 80c2eb1

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
repository: ${{ inputs.repository }}
6666

6767
- name: Set up Java
68-
uses: actions/setup-java@v3
68+
uses: actions/setup-java@v4
6969
with:
7070
distribution: temurin
7171
java-version: ${{ inputs.java-version }}
@@ -163,6 +163,7 @@ jobs:
163163
echo "JOSDK Fabric8 version: ${{ steps.build-josdk-pr.outputs.josdk_f8_version }}"
164164
echo "Quarkus version: $(mvn help:evaluate -Dexpression=quarkus.version -q -DforceStdout)"
165165
echo "Quarkus Fabric8 version: ${{ steps.build-quarkus-pr.outputs.quarkus_f8_version }}"
166+
echo "Effective Fabric8 version: $(mvn dependency:tree -Dincludes=io.fabric8:kubernetes-client-api -pl core/deployment | grep io.fabric8:kubernetes-client-api -m1 | cut -d ':' -f 4)"
166167
167168
- name: Build with Maven (JVM)
168169
run: mvn -B formatter:validate install -P'${{steps.set-mvn-profiles.outputs.maven_profiles}}' --file pom.xml

.github/workflows/codeql-analysis.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424
analyze:
2525
name: Analyze
2626
runs-on: ubuntu-latest
27-
# only analyze code on main branch
28-
if: github.ref_name == 'main'
2927
permissions:
3028
actions: read
3129
contents: read
@@ -40,7 +38,7 @@ jobs:
4038

4139
steps:
4240
- name: Checkout repository
43-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4442

4543
# Initializes the CodeQL tools for scanning.
4644
- name: Initialize CodeQL
@@ -54,19 +52,25 @@ jobs:
5452

5553
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5654
# If this step fails, then you should remove it and run the build manually (see below)
57-
- name: Autobuild
58-
uses: github/codeql-action/autobuild@v2
55+
# - name: Autobuild
56+
# uses: github/codeql-action/autobuild@v2
5957

6058
# ℹ️ Command-line programs to run using the OS shell.
6159
# 📚 https://git.io/JvXDl
6260

6361
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
6462
# and modify them (or add more) to build your code if your project
6563
# uses a compiled language
64+
- name: Set up Java
65+
uses: actions/setup-java@v4
66+
with:
67+
distribution: temurin
68+
java-version: 21
69+
cache: 'maven'
6670

67-
#- run: |
68-
# make bootstrap
69-
# make release
71+
- name: Perform quick build
72+
run: |
73+
mvn -Dquickly -Puse-snapshots
7074
7175
- name: Perform CodeQL Analysis
7276
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)