Execute Gradle tasks using wrapper.
Choose JDK and image:
JDK | Image |
---|---|
OpenJDK 12 | MrRamych/gradle-actions/openjdk-12@2.1 |
OpenJDK 11 | MrRamych/gradle-actions/openjdk-11@2.1 |
OpenJDK 8 | MrRamych/gradle-actions/openjdk-8@2.1 |
args
attribute represents the task to execute.
If not specified, check
task is executed.
An example main.workflow
file to run tests on push.
workflow "Push" {
on = "push"
resolves = ["Test"]
}
action "Test" {
uses = "MrRamych/gradle-actions/openjdk-12@2.1"
args = "test"
}
action "Check" {
uses = "MrRamych/gradle-actions/openjdk-12@2.1"
}
action "My tasks" {
uses = "MrRamych/gradle-actions/openjdk-12@2.1"
args = "task1 task2"
}
action "Check" {
uses = "MrRamych/gradle-actions/openjdk-11@2.1"
}
action "My tasks" {
uses = "MrRamych/gradle-actions/openjdk-11@2.1"
args = "task1 task2"
}
action "Check" {
uses = "MrRamych/gradle-actions/openjdk-8@2.1"
}
action "My tasks" {
uses = "MrRamych/gradle-actions/openjdk-8@2.1"
args = "task1 task2"
}