-
Notifications
You must be signed in to change notification settings - Fork 2
FOLIO-4418 FOLIO-4126 Extract sonar logic #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FOLIO-4418 FOLIO-4126 Extract sonar logic #97
Conversation
| - name: Report whether doing Sonar scan | ||
| run: echo "do-sonar-scan=${{ inputs.do-sonar-scan }}" | tee -a $GITHUB_STEP_SUMMARY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't copy this one over as I felt the actions UI was sufficient here (it'll show the entire step skipped if its disabled, and rerunning with debug will explicitly show that it was skipped because inputs.do-sonar-scan was disabled. If you'd still like it printed, that could be moved to the main one or in the report-testing-variables
c3facc3 to
96062c7
Compare
| - name: Upload additional build artifacts | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: build-artifacts | ||
| path: | | ||
| target | ||
| !target/**/*.jar | ||
| !target/apidocs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sonar needs target/classes, target/generated-sources, and whatever other magic stuff gets dumped in target depending on the module's configuration, so we upload it all. This is <2MB in my testing, so little overhead (and is a great debugging resource for devs, too).
was fetch-depth=0 for sonar
dcrossleyau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
#96 but only extracting sonar logic for parallel running.
Here's what this looks like:

Note that typically this would group sonar and uploading apidocs together, but apidocs also relies on
version-number, so they technically have different dependencies and are shown separately.