From de870ded38844f65adb857052c7fae9c604d99da Mon Sep 17 00:00:00 2001 From: Matt Creaser Date: Tue, 6 May 2025 13:24:08 -0300 Subject: [PATCH 1/2] Add codecov upload workflow --- .github/workflows/codecov_code_coverage.yml | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/codecov_code_coverage.yml diff --git a/.github/workflows/codecov_code_coverage.yml b/.github/workflows/codecov_code_coverage.yml new file mode 100644 index 00000000..e4167d99 --- /dev/null +++ b/.github/workflows/codecov_code_coverage.yml @@ -0,0 +1,32 @@ +name: Run code coverage + +on: + push: + branches: + - 'main' + pull_request: + branches: + - 'main' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 + + - name: Setup Java + uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3 + with: + java-version: '17' + distribution: 'corretto' + + - name: Run test and generate kover report + run: ./gradlew koverXmlReport + + - name: Upload Test Report + uses: codecov/codecov-action@v5 + with: + name: report + files: build/reports/kover/report.xml + token: ${{ secrets.CODECOV_TOKEN }} From 6d2623ee24581f8c083c694130fd0a6c73d26d7c Mon Sep 17 00:00:00 2001 From: Matt Creaser Date: Tue, 6 May 2025 13:31:59 -0300 Subject: [PATCH 2/2] Add codecov.yml --- codecov.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..0562d21c --- /dev/null +++ b/codecov.yml @@ -0,0 +1,14 @@ +coverage: + status: + project: + default: + target: auto + threshold: 0.1% + patch: + default: + target: auto + threshold: 0% +comment: + layout: diff + behavior: default + require_changes: false