name: GitHub CI

on: 
  pull_request:
    branches:
    - master
  push:
    branches:
    - master

jobs:
  build:
    strategy:
      matrix:
        java: [ 8, 11.0.x ]

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Set up JDK ${{ matrix.java }}
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}
    - name: Build with Maven
      run: mvn install -DskipTests
    - name: Run Tests
      run: mvn install -Dsurefire.rerunFailingTestsCount=2

name: GitHub CI

on: 
  pull_request:
    branches:
    - master
  push:
    branches:
    - master

jobs:
  build:
    strategy:
      matrix:
        java: [ 11, 17, 18 ]

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Set up JDK ${{ matrix.java }}
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}
    - name: Build with Maven
      run: mvn install -DskipTests
    - name: Run Tests
      run: mvn install -Dsurefire.rerunFailingTestsCount=2

Remove JDK 8 from the build
Remove JDK 8 from the build