-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reenable sonarqube, disable the crappy things
* also fix some encoding in recorder/src files
- Loading branch information
Showing
9 changed files
with
64 additions
and
260 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -24,21 +24,6 @@ jobs: | |
with: | ||
arguments: -DENABLE_NULLNESS=true compileTest | ||
|
||
|
||
qodana: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: 'Qodana Scan' | ||
uses: JetBrains/[email protected] | ||
|
||
- uses: github/codeql-action/upload-sarif@v3 | ||
if: success() || failure() | ||
with: | ||
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json | ||
|
||
formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -51,76 +36,4 @@ jobs: | |
- name: Build with Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: --continue spotlessCheck | ||
|
||
# checkstyle: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 0 | ||
# - run: scripts/tools/checkstyle/runIncrementalCheckstyle.sh --xml | tee report.xml | ||
# - run: | | ||
# npx violations-command-line -sarif sarif-report.json \ | ||
# -v "CHECKSTYLE" "." ".*/report.xml$" "Checkstyle" \ | ||
# -diff-to $(git merge-base HEAD origin/main) -pv false | ||
|
||
# - uses: github/codeql-action/upload-sarif@v3 | ||
# if: success() || failure() | ||
# with: | ||
# sarif_file: sarif-report.json | ||
|
||
|
||
checkstyle_new: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '21' | ||
cache: 'gradle' | ||
|
||
- name: Build with Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: --continue checkstyleMainChanged | ||
- run: | | ||
npx violations-command-line -sarif sarif-report.json \ | ||
-v "CHECKSTYLE" "." ".*/build/reports/checkstyle/main_diff.xml$" "Checkstyle" | ||
#-diff-from $(git merge-base HEAD origin/main) | ||
# - run: python3 ./.github/printcs.py */build/reports/checkstyle/main_diff.xml | ||
|
||
# $(git merge-base HEAD origin/main) | ||
|
||
- uses: github/codeql-action/upload-sarif@v3 | ||
if: success() || failure() | ||
with: | ||
sarif_file: sarif-report.json | ||
|
||
pmd: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '21' | ||
cache: 'gradle' | ||
- name: Build with Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: --continue pmdMainChanged | ||
|
||
# - run: python3 ./.github/printAnnotations.py */build/reports/pmd/main.xml | ||
|
||
- run: | | ||
npx violations-command-line -sarif pmd-report.json \ | ||
-v "PMD" "." ".*/build/reports/pmd/main_diff.xml$" "PMD" | ||
# -diff-from $(git merge-base HEAD origin/main) | ||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: pmd-report.json | ||
arguments: --continue spotlessCheck |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
## Copied from SonarCloud | ||
|
||
name: SonarCloud | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
name: Build and analyze | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 21 | ||
distribution: 'zulu' | ||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Generate and submit dependency graph | ||
uses: gradle/actions/dependency-submission@v3 | ||
with: | ||
build-scan-publish: true | ||
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" | ||
build-scan-terms-of-use-agree: "yes" | ||
|
||
- name: Build and analyze | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
GRADLE_OPTS: "-Xmx6g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8" | ||
run: ./gradlew --parallel --continue -DjacocoEnabled=true -x :key.core.symbolic_execution:test -x :key.core.proof_references:test classes testClasses :key.util:test jacocoTestReport sonar |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 |
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