Home

Awesome

Github Actions for Gradle

GitHubActions

Execute Gradle tasks using wrapper.

Usage

  1. Choose JDK and image:

    JDKImage
    OpenJDK 15OrangeLabs-moe/gradle-actions@v5.0-openjdk-15
    OpenJDK 14OrangeLabs-moe/gradle-actions@v5.0-openjdk-14
    OpenJDK 13OrangeLabs-moe/gradle-actions@v5.0-openjdk-13
    OpenJDK 11OrangeLabs-moe/gradle-actions@v5.0-openjdk-11
    OpenJDK 8OrangeLabs-moe/gradle-actions@v5.0-openjdk-8
  2. By default, check task is executed. If you want to change this behaviour, specify args field (see example below).

Example

An example test.yml file to run tests on push and pull requests.

on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: OrangeLabs-moe/gradle-actions@v5.0-openjdk-15
      with:
        args: test