mapilocal / gradle-actions

Github Actions for Gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Actions for Gradle

GitHubActions

Execute Gradle tasks using wrapper.

Usage

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.

Examples

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

OpenJDK 12

action "Check" {
  uses = "MrRamych/gradle-actions/openjdk-12@2.1"
}
action "My tasks" {
  uses = "MrRamych/gradle-actions/openjdk-12@2.1"
  args = "task1 task2"
}

OpenJDK 11

action "Check" {
  uses = "MrRamych/gradle-actions/openjdk-11@2.1"
}
action "My tasks" {
  uses = "MrRamych/gradle-actions/openjdk-11@2.1"
  args = "task1 task2"
}

OpenJDK 8

action "Check" {
  uses = "MrRamych/gradle-actions/openjdk-8@2.1"
}
action "My tasks" {
  uses = "MrRamych/gradle-actions/openjdk-8@2.1"
  args = "task1 task2"
}

About

Github Actions for Gradle

License:MIT License


Languages

Language:Dockerfile 68.5%Language:HCL 22.1%Language:Shell 9.5%