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 }}" 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 }}"