diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index ef336c65..8bc38db5 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,24 +1,21 @@ name: Java CI -on: - push: - branches: - - master +on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: submodules: recursive - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: 8 - name: Build with Gradle run: ./gradlew clean test build - uses: actions/upload-artifact@v2 with: - name: artifact + name: artifacts path: build/release/*