Skip to content

Commit

Permalink
ci(tests): Speed up the verify tests with parallel execution
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelsJP committed Nov 22, 2024
1 parent 385283c commit 4200d5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/run_maven_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
key: ${{ runner.os }}-sonar-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v4
Expand All @@ -41,9 +41,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
mvn -B verify -Papitests \
mvn -B verify -Papitests -T 4 \
-Dors.engine.init-threads=4 \
-Djunit.jupiter.execution.parallel.enabled=true \
-Djunit.jupiter.execution.parallel.mode.default=concurrent \
-Djunit.jupiter.execution.parallel.mode.classes.default=concurrent \
-Djunit.jupiter.execution.parallel.config.strategy=fixed \
-Djunit.jupiter.execution.parallel.config.fixed.parallelism=4 \
jacoco:report -DCI=true org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
Expand Down

0 comments on commit 4200d5f

Please sign in to comment.