name: Java CI Build and Test

on: [push, pull_request]


jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [ '1.8.0', '11.0.x', '13.0.x' ]
    steps:
    - uses: actions/checkout@v1
    - name: Set up JDK
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}
    - name: Maven Download all dependencies
      run: mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.1:go-offline
    - name: Maven Build
      run: mvn -B install site --file pom.xml
