-
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.
- Loading branch information
1 parent
3d3accd
commit 332bbcb
Showing
2 changed files
with
27 additions
and
59 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 |
---|---|---|
|
@@ -17,6 +17,7 @@ jobs: | |
permissions: | ||
contents: read | ||
checks: write | ||
pull-requests: write | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
@@ -27,12 +28,21 @@ jobs: | |
java-version: '${{ env.JDK_VERSION }}' | ||
cache: 'gradle' | ||
- name: Build and Run Tests | ||
run: ./gradlew test | ||
run: ./gradlew test -Pkover koverXmlReport | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
report_paths: '**/build/test-results/test/TEST-*.xml' | ||
- 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: 50 | ||
min-coverage-changed-files: 60 | ||
detekt: | ||
name: Detekt | ||
runs-on: ubuntu-latest | ||
|
@@ -59,34 +69,3 @@ 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: 50 | ||
min-coverage-changed-files: 60 | ||
- name: Run Kover Verify | ||
run: ./gradlew koverVerify |
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