From 14efc4957d488b5c394ca418b70e716865a6bf90 Mon Sep 17 00:00:00 2001 From: Sergey Igushkin Date: Wed, 1 Jul 2020 22:23:19 +0300 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 58e1c59..d74dd30 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,7 +1,7 @@ # This workflow will build a Java project with Gradle # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Java CI with Gradle +name: Gradle build on: push: @@ -9,18 +9,20 @@ on: pull_request: branches: [ master ] +# .github/workflows/gradle-build-pr.yml jobs: - build: - - runs-on: ubuntu-latest - + gradle: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: 11 - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build + - uses: eskatos/gradle-command-action@v1 + with: + arguments: build