-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kover and gh action for coverage
- Loading branch information
1 parent
c9e2e0a
commit 99a86fa
Showing
3 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
|
||
env: | ||
JDK_VERSION: 21 | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
|
@@ -16,8 +17,6 @@ jobs: | |
permissions: | ||
contents: read | ||
checks: write | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
@@ -44,8 +43,6 @@ jobs: | |
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
@@ -62,3 +59,33 @@ jobs: | |
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
path: 'build/reports/detekt/merge.xml' | ||
coverage: | ||
name: Coverage | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# required for all workflows | ||
pull-requests: write | ||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ env.JDK_VERSION }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '${{ env.JDK_VERSION }}' | ||
cache: 'gradle' | ||
- name: Run Kover | ||
run: ./gradlew koverXmlReport | ||
- name: Publish Kover Report | ||
uses: madrapps/[email protected] | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
paths: | | ||
${{ github.workspace }}/build/reports/kover/report.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
min-coverage-overall: 40 | ||
min-coverage-changed-files: 60 | ||
debug-mode: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters