/gradle-actions

Not maintained. Use https://github.com/actions/setup-java and https://github.com/gradle/gradle-build-action

Primary LanguageDockerfileMIT LicenseMIT

Github Actions for Gradle

GitHubActions

Execute Gradle tasks using wrapper.

Usage

  1. Choose JDK and image:

    JDK Image
    OpenJDK 15 OrangeLabs-moe/gradle-actions@v5.0-openjdk-15
    OpenJDK 14 OrangeLabs-moe/gradle-actions@v5.0-openjdk-14
    OpenJDK 13 OrangeLabs-moe/gradle-actions@v5.0-openjdk-13
    OpenJDK 11 OrangeLabs-moe/gradle-actions@v5.0-openjdk-11
    OpenJDK 8 OrangeLabs-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