From 4200d5fa62f3e12b2a1fb27cc67a32e957e6ba5a Mon Sep 17 00:00:00 2001 From: Julian Psotta Date: Fri, 22 Nov 2024 23:54:16 +0100 Subject: [PATCH] ci(tests): Speed up the verify tests with parallel execution --- .github/workflows/run_maven_tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_maven_tests.yml b/.github/workflows/run_maven_tests.yml index e099d3bd1a..128a52e757 100644 --- a/.github/workflows/run_maven_tests.yml +++ b/.github/workflows/run_maven_tests.yml @@ -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 @@ -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