name: build

on: [push, pull_request]

jobs:
  build:
    name: JDK ${{matrix.java}}

    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [8, 11, 13]

    steps:
    - name: Check out code
      uses: actions/checkout@v1

    - name: Set up JDK ${{ matrix.java }}
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}

    - name: Run tests
      run: mvn -B test

    - name: Build JAR
      run: mvn -B package

name: build

on: [push, pull_request]

jobs:
  build:
    name: JDK ${{matrix.java}}

    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [7, 8, 11, 13]

    steps:
    - name: Check out code
      uses: actions/checkout@v1

    - name: Set up JDK ${{ matrix.java }}
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}

    - name: Run tests
      run: mvn -B test

    - name: Build JAR
      run: mvn -B package

Test with JDK 7 too
Test with JDK 7 too
