This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Upgrade to Quarkus 3.2.7 #2199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🧐 Analyze code | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
build: | |
name: 👩🏼🏭 Build 👩🏼🏭 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: 🥸 Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
check-latest: true | |
- name: 🔥 Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: 🤳 Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: java | |
- name: 🦾 Build and Analyze | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
run: mvn -T1C -B verify -Panalysis | |
- name: 👀 Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
- name: 💅 Codecov Analysis | |
uses: codecov/codecov-action@v3 | |
native-tests: | |
name: 👩🏼🏭 Native tests for ${{ matrix.os }} 👩🏼🏭 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
- os: macos-latest | |
- os: windows-latest | |
steps: | |
- name: 🗄️ Checkout Source Code | |
uses: actions/checkout@v4 | |
- name: 🥸 Set up GraalVM | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '17.0.7' | |
distribution: 'graalvm-community' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
cache: 'maven' | |
- name: 🔥 Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: configure Pagefile | |
uses: al-cheb/configure-pagefile-action@v1.3 | |
with: | |
minimum-size: 16GB | |
disk-root: "C:" | |
if: ${{ matrix.os == 'windows-latest' }} | |
- name: 🤳 Run native tests | |
run: mvn ${{ matrix.os == 'windows-latest' && '--%' || '' }} install -Pnative -Dquarkus.native.native-image-xmx=5g -Dquarkus.log.category.\"io.kaoto.backend.model.deployment.kamelet.step.FlowStepDeserializer\".level=OFF | |
- name: Archive Quarkus log for native tests | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: quarkus-logs-${{ matrix.os }} | |
path: '**/target/quarkus.log' | |
- name: Archive native binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: kaoto-runner-${{ matrix.os }} | |
path: | | |
api/target/*-runner | |
api\target\*-runner.exe | |
jvm-tests: | |
name: 👩🏼🏭 JVM tests for ${{ matrix.os }} 👩🏼🏭 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
- os: macos-latest | |
- os: windows-latest | |
steps: | |
- name: 🗄️ Checkout Source Code | |
uses: actions/checkout@v4 | |
- name: 🥸 Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
check-latest: true | |
- name: 🔥 Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
if: ${{ matrix.os == 'windows-latest' }} | |
- name: 🤳 Run tests | |
run: mvn ${{ matrix.os == 'windows-latest' && '--%' || '' }} install -Dquarkus.log.category.\"io.kaoto.backend.model.deployment.kamelet.step.FlowStepDeserializer\".level=OFF |