name: Java CI Build and Test

on: [push, pull_request]


jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [windows-latest, ubuntu-latest]
        java: [ '1.8.0', '11.0.x', '13.0.x' ]
    steps:
    - uses: actions/checkout@v2
    - 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 -D enable-ci
    - name: Maven Build
      run: mvn -B install site -D enable-ci --file pom.xml

name: Java CI Build and Test

on: [push, pull_request]


jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [windows-latest, ubuntu-latest]
        java: [ '1.8.0', '11.0.x', '13.0.x' ]
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}
    - name: Cached .m2
      uses: actions/cache@v1
      with:
        path: ~/.m2/repository
        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          ${{ runner.os }}-maven-
    - name: Maven Build
      run: mvn -B install site -D enable-ci --file pom.xml

Move CI to cache .m2 directory
Move CI to cache .m2 directory
