From 51fe919137b49b53cd42b25e38c81dd162de915a Mon Sep 17 00:00:00 2001 From: Janak Amarasena Date: Fri, 12 Jul 2024 16:21:08 +0530 Subject: [PATCH] Update GitHub workflow --- .github/workflows/pr-builder.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index f03c9267..101f429d 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -43,3 +43,9 @@ jobs: run: mvn clean install -U -B - name: Delete SNAPSHOT artifacts run: find ~/.m2/repository/ -name "*-SNAPSHOT" -type d -print -prune -exec rm -r {} + +- name: Generate coverage report + run: mvn test jacoco:report + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }}