Skip to content

Commit

Permalink
Restored listTasksAsJSON
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Gudel <[email protected]>
  • Loading branch information
pawel-gudel-eliatra committed Jun 23, 2023
1 parent 73b6bb9 commit ae391e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Generate list of tasks
id: set-matrix
run: |
echo "separateTestsNames=$(./gradlew listTasksAsJSON -q --console=plain | head -n 1)" >> $GITHUB_OUTPUT
echo "separateTestsNames=$(./gradlew listTasksAsJSON -q --console=plain | tail -n 1)" >> $GITHUB_OUTPUT
build:
name: build
Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def splitTestConfig = [
List<String> taskNames = splitTestConfig.keySet() as List

task listTasksAsJSON {
System.out.println(new JsonBuilder(taskNames))
doLast {
System.out.println(new JsonBuilder(taskNames))
}
}

test {
Expand Down

0 comments on commit ae391e6

Please sign in to comment.