Skip to content

Commit

Permalink
CI script update.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbell committed Nov 17, 2023
1 parent 208dc7b commit 3fdc9d8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,13 @@ jobs:
- name: Unit tests
run: ./gradlew testDebugUnitTest
- name: Kover report
run: ./gradlew koverMergedReport
# - name: Add coverage report to PR
# id: kover
# uses: mi-kas/[email protected]
# with:
# path: ${{ github.workspace }}/build/reports/kover/merged/xml/report.xml
# token: ${{ secrets.GITHUB_TOKEN }}
# title: Code Coverage
# update-comment: true
# min-coverage-overall: 80
# min-coverage-changed-files: 80
run: ./gradlew koverHtmlReport koverXmlReport
- name: Kover dump
run: ./gradlew koverDump -q
- name: Codecov
uses: codecov/codecov-action@v3
with:
files: ./build/reports/kover/merged/xml/report.xml
files: ./build/reports/kover/report.xml
flags: unittests
verbose: true
- name: Upload reports
Expand Down
25 changes: 25 additions & 0 deletions config/codecoverage-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<html>
<head>
<title>Code Coverage</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu"
crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="page-header">
<h1>Code Coverage</h1>
</div>
<p class="lead">Code coverage reports for each module. <span class="glyphicon glyphicon glyphicon-remove text-danger" aria-hidden="true"></span> indicates no report available.</p>
<table class="table table-striped table-bordered">
<tr>
<th width="60%">Module</th>
<th>Coverage Report</th>
<th>Coverage</th>
</tr>
$codeQuality
</table>
</div>
</body>
</html>

0 comments on commit 3fdc9d8

Please sign in to comment.