Skip to content

Commit

Permalink
Run tests in single thread
Browse files Browse the repository at this point in the history
Run test during build in single thread to avoid
"address already in use" issues which can be caused by parallel test
execution.

Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
  • Loading branch information
ihrasko committed Oct 31, 2024
1 parent b220eec commit a80868f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: mvn install -DskipTests=true -B -V -Psource-quality
- name: Maven test + SonarCloud
if: ${{ env.SONAR_TOKEN != 0 }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
run: mvn -T1 -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
-Dsonar.java.source=21
-Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
-Dsonar.organization=${{ env.SONAR_ORGANIZATION }}
Expand All @@ -55,7 +55,7 @@ jobs:
-Dsonar.coverage.exclusions=**/lighty-codecs/**/*
- name: Maven test no SonarCloud
if: ${{ env.SONAR_TOKEN == 0 }}
run: mvn -B verify
run: mvn -T1 -B verify
- name: Upload surefire test results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit a80868f

Please sign in to comment.