name: Java CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 java-package: jdk+fx - name: Check style main run: ./gradlew checkstyleMain - name: Check style test run: ./gradlew checkstyleTest - name: Build with Gradle run: ./gradlew build - name: Upload Artifacts uses: actions/upload-artifact@v2 with: name: HMCL path: HMCL/build/libs