| 1 | name: Java CI |
| 2 | |
| 3 | on: [pull_request, push] |
| 4 | |
| 5 | jobs: |
| 6 | tests: |
| 7 | runs-on: ubuntu-latest |
| 8 | |
| 9 | steps: |
| 10 | - uses: actions/checkout@v2 |
| 11 | - name: Set up JDK 8 |
| 12 | uses: actions/setup-java@v2 |
| 13 | with: |
| 14 | java-version: '8' |
| 15 | distribution: 'adopt' |
| 16 | - name: Run Gradle Tests |
| 17 | uses: eskatos/gradle-command-action@v1 |
| 18 | with: |
| 19 | arguments: check |
| 20 | distributions-cache-enabled: true |
| 21 | dependencies-cache-enabled: true |
| 22 | configuration-cache-enabled: true |