From b13268a3aed09ec55360f7878a598bb921401021 Mon Sep 17 00:00:00 2001 From: Pramod Kumar Yadav Date: Wed, 1 May 2024 23:07:55 +0200 Subject: [PATCH 1/2] run on multi runners --- .github/workflows/reusable-workflow-to-run-tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-workflow-to-run-tests.yml b/.github/workflows/reusable-workflow-to-run-tests.yml index 08b685d..df3c5a3 100644 --- a/.github/workflows/reusable-workflow-to-run-tests.yml +++ b/.github/workflows/reusable-workflow-to-run-tests.yml @@ -29,9 +29,13 @@ on: jobs: run-tests: - + timeout-minutes: 15 runs-on: ubuntu-latest - + strategy: + fail-fast: false + matrix: + # Give same names for runners. + runner: ["first", "second", "third"] steps: - uses: actions/checkout@v3 @@ -50,7 +54,7 @@ jobs: - name: Test with Maven run: > - mvn + mvn -Dsurefire.forkCount=${{ strategy.job-total }} -DargLine="-Xmx1024m" -DTEST_ENV="${{ inputs.test-environment }}" -Dgroups="${{ inputs.tags-of-tests-to-include }}" -Dtest="${{ inputs.test-files-to-include }}" From b25b0fb0b3105b59e52d12757e0c34e666d15a39 Mon Sep 17 00:00:00 2001 From: Pramod Kumar Yadav Date: Wed, 1 May 2024 23:09:17 +0200 Subject: [PATCH 2/2] run all tests to test distributed run --- .../trigger-new-updated-and-unit-tests-on-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger-new-updated-and-unit-tests-on-pull-request.yml b/.github/workflows/trigger-new-updated-and-unit-tests-on-pull-request.yml index 2b36f73..5ee1983 100644 --- a/.github/workflows/trigger-new-updated-and-unit-tests-on-pull-request.yml +++ b/.github/workflows/trigger-new-updated-and-unit-tests-on-pull-request.yml @@ -48,7 +48,7 @@ jobs: needs: touched-test-files uses: ./.github/workflows/reusable-workflow-to-run-tests.yml with: - tags-of-tests-to-include: "unit" + tags-of-tests-to-include: "" test-files-to-include: "${{needs.touched-test-files.outputs.test_files_to_run}}" tags-of-tests-to-exclude: "" run-name: "${{ github.event.pull_request.title }}"