From 2853c0e8f7ef5886ed3c3f69147fc191677a4b9c Mon Sep 17 00:00:00 2001 From: Sean Sylver Date: Wed, 18 Sep 2024 14:53:15 -0700 Subject: [PATCH 1/2] Test sonar --- .github/workflows/sonarscan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarscan.yml b/.github/workflows/sonarscan.yml index 354204a97..754e5af0f 100644 --- a/.github/workflows/sonarscan.yml +++ b/.github/workflows/sonarscan.yml @@ -24,7 +24,7 @@ jobs: #- name: Maven Package # run: mvn -B clean package -DskipTests #- name: Maven Verify - #run: mvn -B clean verify + #run: mvn -B clean verify sonar: name: Test - SonarCloud Scan From 6422e662ab23dd92fa80b8f4ed2dd80ec5f8a859 Mon Sep 17 00:00:00 2001 From: Sean Sylver Date: Wed, 18 Sep 2024 15:08:17 -0700 Subject: [PATCH 2/2] Add maven_opts, node_opts --- .github/workflows/sonarscan.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarscan.yml b/.github/workflows/sonarscan.yml index 754e5af0f..dba2a000e 100644 --- a/.github/workflows/sonarscan.yml +++ b/.github/workflows/sonarscan.yml @@ -38,7 +38,9 @@ jobs: java-version: 17 distribution: 'adopt' - name: SonarCloud Scan - run: - mvn clean --settings server/wfprev-api/mvn_settings/settings.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,sonar -Dsonar.projectKey=bcgov_nr-bcws-wfprev -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Drepo.login=${{ secrets.IDIR_AS_EMAIL }} -Drepo.password=${{ secrets.IDIR_PASSWORD }} -X -DskipTests + run: + export MAVEN_OPTS="-Xmx4096m" + export NODE_OPTIONS="--max-old-space-size=4096" + mvn clean --settings server/wfprev-api/mvn_settings/settings.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,sonar -Dsonar.projectKey=bcgov_nr-bcws-wfprev -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Drepo.login=${{ secrets.IDIR_AS_EMAIL }} -Drepo.password=${{ secrets.IDIR_PASSWORD }} -X -DskipTests env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}