Skip to content

Commit 3fddaa5

Browse files
committed
fix sonar error
1 parent 6281311 commit 3fddaa5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/unit-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ jobs:
8181
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-backend
8282
restore-keys: ${{ runner.os }}-maven-
8383
- name: Run Unit tests
84-
run: ./mvnw clean verify -B -Dmaven.test.skip=false -Dspotless.skip=true -DskipUT=false -Danalyze.skip=true
84+
run: export MAVEN_OPTS="-Xmx6g -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=1024m" && ./mvnw clean verify -B -Dmaven.test.skip=false -Dspotless.skip=true -DskipUT=false -Danalyze.skip=true
8585
- name: Upload coverage report to codecov
86-
run: CODECOV_TOKEN="09c2663f-b091-4258-8a47-c981827eb29a" bash <(curl -s https://codecov.io/bash)
86+
run: CODECOV_TOKEN=$CODECOV_TOKEN bash <(curl -s https://codecov.io/bash)
87+
with:
88+
token: ${{ secrets.CODECOV_TOKEN }}
8789

8890
# Set up JDK 17 for SonarCloud.
8991
- name: Set up JDK 17

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
7474
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
7575
<maven-source-plugin.version>2.4</maven-source-plugin.version>
76-
<maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
76+
<maven-surefire-plugin.version>3.5.4</maven-surefire-plugin.version>
7777
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
7878
<maven-shade-plugin.version>3.3.0</maven-shade-plugin.version>
7979
<rpm-maven-plugion.version>2.2.0</rpm-maven-plugion.version>
@@ -609,6 +609,10 @@
609609
<systemPropertyVariables>
610610
<jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
611611
</systemPropertyVariables>
612+
<parallel>methods</parallel>
613+
<threadCount>8</threadCount>
614+
<forkCount>2</forkCount>
615+
<reuseForks>true</reuseForks>
612616
</configuration>
613617
</plugin>
614618

0 commit comments

Comments
 (0)