-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aad175e
commit f488f18
Showing
12 changed files
with
178 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,11 +95,11 @@ jobs: | |
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit | ||
fetch-depth: 0 # a full history is required for pull request analysis | ||
|
||
- name: Set up JDK 17 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
java-version: 11 | ||
cache: maven | ||
|
||
- name: Setup Cache for SonarCloud packages | ||
|
@@ -110,23 +110,21 @@ jobs: | |
restore-keys: ${{ runner.os }}-sonar | ||
|
||
## todo: use same artifacts from the build job | ||
- name: Maven Install | ||
run: mvn -B install jacoco:report | ||
|
||
## Automatic Analysis is turned off on sonarcloud.io | ||
- name: Maven Sonar | ||
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar | ||
- name: Maven JaCoCo report & Sonar | ||
run: mvn -B install jacoco:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
- name: Copy aggregate JaCoCo Report (for Qodana) | ||
shell: bash | ||
run: | | ||
ls -lha aggregate-report/target/site/jacoco-aggregate/ | ||
mkdir -p .qodana/code-coverage/ | ||
cp -r aggregate-report/target/site/jacoco-aggregate/* .qodana/code-coverage/ | ||
# potentially Qodana could be it's own workflow (recommended in the docs) | ||
# potentially Qodana could be its own workflow (recommended in the docs) | ||
- name: Qodana Scan | ||
uses: JetBrains/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.