name: Maven

on: [push]

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]

    steps:

    - name: Checkout repository
      uses: actions/checkout@v1

    - name: Setup Maven caching
      uses: actions/cache@v2
      with:
        path: ~/.m2/repository
        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          ${{ runner.os }}-maven-

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

    - name: Build with Maven
      run: ./mvnw -V -B -e "-DtrimStackTrace=false" "-Dmaven.test.failure.ignore=true" verify

    - name: Publish Test Results
      uses: scacap/action-surefire-report@v1
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        check_name: Test Report (${{ matrix.os }})
        report_paths: '**/*-reports/TEST-*.xml'

    - name: Upload Test Reports
      uses: actions/upload-artifact@v2
      with:
        name: test-reports-${{ matrix.os }}
        path: '**/*-reports'

name: Maven

on: [push]

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]

    steps:

    - name: Checkout repository
      uses: actions/checkout@v1

    - name: Setup Maven caching
      uses: actions/cache@v2
      with:
        path: ~/.m2/repository
        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          ${{ runner.os }}-maven-

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

    - name: Build with Maven
      run: ./mvnw -V -B -e "-DtrimStackTrace=false" "-Dmaven.test.failure.ignore=true" verify

    - name: Publish Test Results
      uses: scacap/action-surefire-report@v1
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        check_name: Test Report (${{ matrix.os }})
        report_paths: '**/*-reports/TEST-*.xml'

    - name: Upload Test Reports
      uses: actions/upload-artifact@v2
      with:
        name: test-reports-${{ matrix.os }}
        path: '**/*-reports'

Remove Windows platform from CI due to missing embedded Redis.
Remove Windows platform from CI due to missing embedded Redis.
