From 4d6e1cbb3ab049cf952d9ac5ba1fa15c1287fd59 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Sat, 29 Nov 2025 04:36:33 -0300 Subject: [PATCH] Disable Qodana bootstrap script to avoid shell parsing issues in CI --- .github/workflows/qodana_code_quality.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/qodana_code_quality.yml b/.github/workflows/qodana_code_quality.yml index 1cf27c8..6050e76 100644 --- a/.github/workflows/qodana_code_quality.yml +++ b/.github/workflows/qodana_code_quality.yml @@ -45,6 +45,27 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + + # Set up JDK for potential code generation (e.g., protobuf) prior to Qodana analysis + - name: Set up Java 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + cache: 'maven' + + # Generate sources so that Qodana resolves imports from generated code + - name: Generate sources (protobuf) + shell: bash + run: | + if [ -f ./mvnw ]; then chmod +x ./mvnw || true; fi + if [ -x ./mvnw ]; then + ./mvnw -B -DskipTests -DskipITs=true generate-sources || true + elif command -v mvn >/dev/null 2>&1; then + mvn -B -DskipTests -DskipITs=true generate-sources || true + else + echo "[Qodana prep] Maven not available; skipping generate-sources" + fi - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2025.2 with: