Skip to content

Commit 67ead09

Browse files
committed
New github workflow for uploading a coverage html report
1 parent 0db610c commit 67ead09

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Create HTML coverage report
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-java@v4
16+
with:
17+
distribution: temurin
18+
java-version: 24
19+
20+
- name: Setup Gradle
21+
uses: gradle/actions/setup-gradle@v3
22+
23+
- name: Generate coverage report
24+
run: ./gradlew koverHtmlReport
25+
26+
- name: Upload coverage report
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: kotter-coverage-report
30+
path: kotter/build/reports/kover/html/
31+
retention-days: 1

0 commit comments

Comments
 (0)