diff --git a/.github/workflows/parallel-unit-tests.yml b/.github/workflows/parallel-unit-tests.yml new file mode 100644 index 00000000000..092851f89c1 --- /dev/null +++ b/.github/workflows/parallel-unit-tests.yml @@ -0,0 +1,33 @@ +name: parallel-unit-tests +on: + pull_request: + +env: + GRADLE_OPTS: "-Dorg.gradle.daemon=false" + +jobs: + junit: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ci_node_index: + - 0 + - 1 + - 2 + - 3 + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: adopt + java-version: 17 + cache: gradle + - name: Build + uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true + cache-read-only: false + arguments: compileJava compileTestJava -Dorg.gradle.parallel=true diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ce25dc6b4d1..965fe282afd 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -5,13 +5,12 @@ on: env: GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false" -permissions: - checks: write - jobs: unitTests: runs-on: group: "Besu Large Runners" + permissions: + checks: write steps: - name: Checkout Repo uses: actions/checkout@v3