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 }} 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