Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ jobs:
- name: Build with Maven
run: mvn -B install -Pmetrics --file pom.xml

- name: Check for uncommitted generated source changes
if: github.event_name == 'pull_request'
run: |
echo "Checking for uncommitted generated source changes..."

# Check if there are any changes in generated-sources directories
if git diff --name-only HEAD | grep -E "target/generated-sources/"; then
echo "❌ ERROR: Found uncommitted generated source changes!"
echo ""
echo "The following generated files have changed:"
git diff --name-only HEAD | grep -E "target/generated-sources/" | sed 's/^/ /'
echo ""
echo "Please commit these changes to the repository:"
echo " git add target/generated-sources/"
echo " git commit -m \"Update generated sources\""
echo ""
exit 1
else
echo "✅ No uncommitted generated source changes found"
fi

- name: SonarCloud Analysis
# Skip for Dependabot PRs (no access to secrets)
if: github.actor != 'dependabot[bot]'
Expand Down
3 changes: 3 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Include generated sources (they're ignored by main .gitignore)
!/target/generated-sources/
!/target/generated-test-sources/
Loading
Loading