name: 'Generate coverage report'

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  coverage:

    runs-on: [ubuntu-latest]
    name: Coverage on Ubuntu

    steps:
      - uses: actions/checkout@v2.3.4
      - name: Set up JDK 11
        uses: actions/setup-java@v2
        with:
          java-version: 11
      - name: Generate coverage with JaCoCo
        run: mvn -V -ntp clean verify jacoco:prepare-agent test integration-test jacoco:report --file pom.xml '-Dgpg.skip'

      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v1.5.0
        with:
          token: ${{secrets.CODECOV_TOKEN}}

name: 'Generate coverage report'

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  coverage:

    runs-on: [ubuntu-latest]
    name: Coverage on Ubuntu

    steps:
      - uses: actions/checkout@v2.3.4
      - name: Set up JDK 11
        uses: actions/setup-java@v2
        with:
          distribution: 'adopt'
          java-version: '11'
          check-latest: true
      - name: Generate coverage with JaCoCo
        run: mvn -V -ntp clean verify jacoco:prepare-agent test integration-test jacoco:report --file pom.xml '-Dgpg.skip'
      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v1.5.0
        with:
          token: ${{secrets.CODECOV_TOKEN}}

Use AdoptOpenJDK to build the plugin.
Use AdoptOpenJDK to build the plugin.
