-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: adds kover to github actions (#86)
- Loading branch information
1 parent
ee9757d
commit 7a65022
Showing
2 changed files
with
54 additions
and
2 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 |
---|---|---|
|
@@ -107,8 +107,28 @@ jobs: | |
run: ./gradlew ktlintCheck | ||
|
||
- name: Build Check All tests | ||
run: | | ||
./gradlew build check allTests --stacktrace | ||
run: ./gradlew build check allTests --stacktrace | ||
|
||
- name: Generate kover coverage report | ||
run: ./gradlew koverHtmlReport koverXmlReport | ||
|
||
- name: Upload coverage html | ||
uses: actions/[email protected] | ||
with: | ||
name: coverage-results-${{ matrix.os-type }}.zip | ||
path: build/reports/kover/html | ||
|
||
- name: Add coverage report to PR | ||
id: kover | ||
uses: mi-kas/kover-report@v1 | ||
with: | ||
path: ${{ github.workspace }}/build/reports/kover/report.xml | ||
token: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
title: Code Coverage | ||
update-comment: true | ||
min-coverage-overall: 90 | ||
min-coverage-changed-files: 90 | ||
coverage-counter-type: LINE | ||
|
||
- name: Build for Windows | ||
if: matrix.os-type == 'windows' | ||
|
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