name: CI
on:
  push:
    branches:
      - develop
      - master
  pull_request:
    types: [opened, synchronize, reopened]
jobs:
  build:
    name: Build and Test (${{ matrix.os }} / OpenJDK ${{ matrix.jdk }})
    strategy:
      fail-fast: true
      matrix:
        jdk: ['8', '11', '15']
        os: [ubuntu-latest, windows-latest, macOS-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK ${{ matrix.jdk }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.jdk }}
      - name: Cache Maven packages
        uses: actions/cache@v2
        with:
          path: ~/.m2
          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-m2
      - name: Maven Build
        run: mvn -V -B -DskipTests=true "-Dmaven.javadoc.skip=true" install
      - name: Maven Test
        run: mvn -V -B test
      - name: Maven License Check
        run: mvn -V -B license:check
# TODO(AR) test and license:check should be replaced by verify, but seems to cause an error on GitHub Actions
#      - name: Maven Verify
#        run: mvn -V -B verify
      - name: Maven Javadoc
        run: mvn -V -B javadoc:javadoc

name: CI
on:
  push:
    branches:
      - develop
      - master
  pull_request:
    types: [opened, synchronize, reopened]
jobs:
  build:
    name: Build and Test (${{ matrix.os }} / OpenJDK ${{ matrix.jdk }})
    strategy:
      fail-fast: true
      matrix:
        jdk: ['8', '11', '15']
        os: [ubuntu-latest, windows-latest, macOS-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK ${{ matrix.jdk }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.jdk }}
      - name: Cache Maven packages
        uses: actions/cache@v2
        with:
          path: ~/.m2
          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-m2
      - name: Maven Build
        run: mvn -V -B -DskipTests=true "-Dmaven.javadoc.skip=true" install
      - name: Maven Test
        run: mvn -V -B "-Dsurefire.useFile=false" -DtrimStackTrace=false test
      - name: Maven License Check
        run: mvn -V -B license:check
# TODO(AR) test and license:check should be replaced by verify, but seems to cause an error on GitHub Actions
#      - name: Maven Verify
#        run: mvn -V -B verify
      - name: Maven Javadoc
        run: mvn -V -B javadoc:javadoc

Enable debugging of build failures via stdout in CI
[feature] Enable debugging of build failures via stdout in CI
