name: build

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java-version: [8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Set up Java ${{ matrix.java-version }}
        uses: actions/setup-java@v2
        with:
          distribution: adopt
          java-version: ${{ matrix.java-version }}
      - name: Run tests
        run: mvn -e test -Dmaven.wagon.http.ssl.insecure=${{ matrix.java-version == 9 || matrix.java-version == 10 }}

  coverage:
    needs: test
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Create code coverage report
        run: mvn -e test jacoco:report
      - name: Upload code coverage report
        uses: codecov/codecov-action@v2
        with:
          files: ./**/target/site/jacoco/jacoco.xml
          name: codecov

name: build

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java-version: [8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Set up Java ${{ matrix.java-version }}
        uses: actions/setup-java@v3
        with:
          distribution: adopt
          java-version: ${{ matrix.java-version }}
      - name: Run tests
        run: mvn -e test -Dmaven.wagon.http.ssl.insecure=${{ matrix.java-version == 9 || matrix.java-version == 10 }}

  coverage:
    needs: test
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Create code coverage report
        run: mvn -e test jacoco:report
      - name: Upload code coverage report
        uses: codecov/codecov-action@v2
        with:
          files: ./**/target/site/jacoco/jacoco.xml
          name: codecov

Update actions/setup-java action to v3
Update actions/setup-java action to v3

Signed-off-by: Renovate Bot <c71e7261d37a4f6ae4cfb0cbd79081310a237e67@renovateapp.com>
