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