Update Qodana workflow: add compile step and include generated sources for resolution
- Introduced a compile step (skipping tests) to prepare classes for import resolution. - Adjusted `qodana.yaml` to include generated sources instead of excluding them, preventing unresolved imports.
This commit is contained in:
parent
4d6e1cbb3a
commit
48943160f1
|
|
@ -66,6 +66,29 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "[Qodana prep] Maven not available; skipping generate-sources"
|
echo "[Qodana prep] Maven not available; skipping generate-sources"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Optionally compile (skip tests) to ensure classes are available for resolution
|
||||||
|
- name: Compile (skip tests)
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [ -x ./mvnw ]; then
|
||||||
|
./mvnw -B -DskipTests -DskipITs=true compile || true
|
||||||
|
elif command -v mvn >/dev/null 2>&1; then
|
||||||
|
mvn -B -DskipTests -DskipITs=true compile || true
|
||||||
|
else
|
||||||
|
echo "[Qodana prep] Maven not available; skipping compile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Helpful debug: list generated sources if present
|
||||||
|
- name: Show generated sources
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "=== target/generated-sources (tree) ===" || true
|
||||||
|
if [ -d target/generated-sources ]; then
|
||||||
|
find target/generated-sources -maxdepth 3 -type d -print || true
|
||||||
|
else
|
||||||
|
echo "(none)" || true
|
||||||
|
fi
|
||||||
- name: 'Qodana Scan'
|
- name: 'Qodana Scan'
|
||||||
uses: JetBrains/qodana-action@v2025.2
|
uses: JetBrains/qodana-action@v2025.2
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,5 @@ exclude:
|
||||||
# Exclude generated sources from inspections to reduce noise
|
# Exclude generated sources from inspections to reduce noise
|
||||||
- name: All
|
- name: All
|
||||||
paths:
|
paths:
|
||||||
- target/generated-sources/**
|
- target/protoc-dependencies/**
|
||||||
- target/protoc-dependencies/**
|
# Keep generated sources included for indexing/resolution; excluding them can cause unresolved imports
|
||||||
Loading…
Reference in New Issue