name: Run Gradle
on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
  gradle:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-java@v1
      with:
        java-version: 11

    - name: Setup Gradle
      uses: gradle/gradle-build-action@v2

    - name: Change wrapper permissions
      run: chmod +x ./gradlew

    - name: Execute Gradle build
      run: ./gradlew build
