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
|
||||
echo "[Qodana prep] Maven not available; skipping generate-sources"
|
||||
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'
|
||||
uses: JetBrains/qodana-action@v2025.2
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -17,5 +17,5 @@ exclude:
|
|||
# Exclude generated sources from inspections to reduce noise
|
||||
- name: All
|
||||
paths:
|
||||
- target/generated-sources/**
|
||||
- target/protoc-dependencies/**
|
||||
# Keep generated sources included for indexing/resolution; excluding them can cause unresolved imports
|
||||
Loading…
Reference in New Issue