name: Continous build - build and test on every push

on: push

jobs:
  build:
    name: Build and test
    runs-on: ubuntu-latest
    
    steps:
      - name: Checkout
        uses: actions/checkout@v1
        with:
          submodules: true

      - name: Setup Java
        uses: actions/setup-java@v1
        with:
          java-version: 1.8

      - name: Build with Ant
        run: ant compile

      - name: Test with Ant
        run: ant test

name: Continous build - build and test on every push

on: push

jobs:
  build:
    name: Build and test
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java-version: [7, 8, 11]
    
    steps:
      - name: Checkout
        uses: actions/checkout@v1
        with:
          submodules: true

      - name: Setup Java ${{ matrix.java-version }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.java-version }}

      - name: Report Java version
        run: |
          java -version
          javac -version

      - name: Build with Ant
        run: ant test

Build with matrix of Java 7, 8 and 11.
Build with matrix of Java 7, 8 and 11.
