1818 outputs :
1919 json : ${{ steps.generate.outputs.split-index-json }}
2020 steps :
21+ - name : Checkout split-tests-java-action
22+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23+ with :
24+ repository : donnerbart/split-tests-java-action
25+
2126 - name : Generate split index list
2227 id : generate
23- uses : donnerbart/split-tests-java-action/generate-split-index-json@26065dae1f2821527d28a29a6f34297791ac259c # v1
28+ # noinspection UndefinedAction
29+ uses : ./generate-split-index-json
30+ # noinspection UndefinedParamsPresent
2431 with :
2532 split-total : ${{ env.split-total }}
2633
@@ -38,10 +45,18 @@ jobs:
3845 split-index : ${{ fromjson(needs.generate-split-index-json.outputs.json) }}
3946 env :
4047 DOWNLOAD_JAR : false
41- JAR_PATH : build/libs/split-tests-java.jar
48+ JAR_PATH : split-tests-java/ build/libs/split-tests-java.jar
4249 steps :
43- - name : Checkout split-test -java
50+ - name : Checkout split-tests -java
4451 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
52+ with :
53+ path : split-tests-java
54+
55+ - name : Checkout split-tests-java-action
56+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
57+ with :
58+ repository : donnerbart/split-tests-java-action
59+ path : split-tests-java-action
4560
4661 - name : Set up JDK 21
4762 uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4
@@ -53,17 +68,20 @@ jobs:
5368 uses : gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4
5469
5570 - name : Compile split-tests-java
71+ working-directory : split-tests-java
5672 run : ./gradlew shadowJar
5773
5874 - name : Split tests
5975 id : split-tests
60- uses : donnerbart/split-tests-java-action@26065dae1f2821527d28a29a6f34297791ac259c # v1
76+ # noinspection UndefinedAction
77+ uses : ./split-tests-java-action
78+ # noinspection UndefinedParamsPresent
6179 with :
6280 split-index : ${{ matrix.split-index }}
6381 split-total : ${{ env.split-total }}
64- glob : ' **/src/test/resources/tests/*Test.java'
82+ glob : ' **/split-tests-java/ src/test/resources/tests/*Test.java'
6583 exclude-glob : ' **/{NoClassNameTest,UnreadableTest,UnreadableNestedTest}.java'
66- junit-glob : ' **/src/test/resources/reports/*.xml'
84+ junit-glob : ' **/split-tests-java/ src/test/resources/reports/*.xml'
6785 format : ' list'
6886 new-test-time : ' average'
6987 calculate-optimal-total-split : true
0 commit comments