name: Java CI

on:
  push:
    branches:
      - master
      - develop
  pull_request:
    branches-ignore: 
      - tag/*
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build with Maven
      run: mvn -B clean package jacoco:report --file pom.xml -U
    - uses: codecov/codecov-action@v1
      with:
        token: ${{ secrets.CODECOV_TOKEN }}
name: Java CI

on:
  push:
    branches:
      - master
      - develop
  pull_request:
    branches-ignore: 
      - tag/*
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 8
    - name: Build with Maven
      run: mvn -B clean package jacoco:report --file pom.xml -U
    - uses: codecov/codecov-action@v1
      with:
        token: ${{ secrets.CODECOV_TOKEN }}
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        # test against latest update of each major Java version, as well as specific updates of LTS versions:
        java: [ 6, 7, 8, 9, 10, 11, 12, 13 ]
    name: Java ${{ matrix.java }} build
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}
    - name: Build with Maven
      run: mvn -B clean package --file pom.xml -U
Build on different Java versions
Build on different Java versions
