Skip to content

Commit

Permalink
chore/sonar_runner_heap
Browse files Browse the repository at this point in the history
  • Loading branch information
rnithinpaladin committed Mar 1, 2023
1 parent 5764f39 commit 999f244
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 51 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/SonarCodeAnalysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: SonarCloud-Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
Expand Down Expand Up @@ -39,14 +39,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
export MAVEN_OPTS="-Xms3000M -Xmx6000M -Xss4M -XX:MaxMetaspaceSize=1024M"
sudo mvn -B -DskipTests=true -Dmaven.javadoc.skip=true -V verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=PaladinCloud_CE -Dsonar.organization=paladincloud -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dsonar.pullrequest.base=master -Dsonar.pullrequest.key=${{github.event.number}} -Dsonar.pullrequest.provider=GitHub -Dsonar.pullrequest.github.repository=PaladinCloud/CE
export MAVEN_OPTS="-Xmx3000m -XX:+UnlockDiagnosticVMOptions -XX:GCLockerRetryAllocationCount=100"
export SONAR_SCANNER_OPTS="-Xmx3000m"
mvn -B -DskipTests=true -Dmaven.javadoc.skip=true -V verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=PaladinCloud_CE -Dsonar.organization=paladincloud -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dsonar.pullrequest.base=master -Dsonar.pullrequest.key=${{github.event.number}} -Dsonar.pullrequest.provider=GitHub -Dsonar.pullrequest.github.repository=PaladinCloud/CE
- name: Build and analyze push
if: ${{ github.event_name == 'push' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
export MAVEN_OPTS="-Xms3000M -Xmx6000M -Xss4M -XX:MaxMetaspaceSize=1024M"
sudo mvn -B -DskipTests=true -Dmaven.javadoc.skip=true -V verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=PaladinCloud_CE -Dsonar.organization=paladincloud -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
export MAVEN_OPTS="-Xmx3000m -XX:+UnlockDiagnosticVMOptions -XX:GCLockerRetryAllocationCount=100"
export SONAR_SCANNER_OPTS="-Xmx3000m"
mvn -B -DskipTests=true -Dmaven.javadoc.skip=true -V verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=PaladinCloud_CE -Dsonar.organization=paladincloud -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
2 changes: 1 addition & 1 deletion .github/workflows/codeQl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '8'
distribution: 'temurin'

# Initializes the CodeQL tools for scanning.
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/mvn.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<modules>
<module>commons</module>
<module>api</module>
<module>api</module>
<module>jobs</module>
<module>webapp</module>
</modules>
Expand Down

0 comments on commit 999f244

Please sign in to comment.