name: Codecov 2022.0 on: push: branches: - 2022.0 pull_request: branches: - 2022.0 jobs: build: runs-on: ubuntu-latest steps: - name: Checkout codes uses: actions/checkout@v3 - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: 17 - name: Test with Maven run: mvn clean test -f pom.xml -B -P sonatype -U - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: file: ${{ github.workspace }}/target/site/jacoco/jacoco.xml