Skip to content

Commit 0cf5865

Browse files
authored
chore: Add codecov upload workflow (#233)
1 parent 79113f9 commit 0cf5865

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Run code coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
branches:
9+
- 'main'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
17+
18+
- name: Setup Java
19+
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
20+
with:
21+
java-version: '17'
22+
distribution: 'corretto'
23+
24+
- name: Run test and generate kover report
25+
run: ./gradlew koverXmlReport
26+
27+
- name: Upload Test Report
28+
uses: codecov/codecov-action@v5
29+
with:
30+
name: report
31+
files: build/reports/kover/report.xml
32+
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: auto
6+
threshold: 0.1%
7+
patch:
8+
default:
9+
target: auto
10+
threshold: 0%
11+
comment:
12+
layout: diff
13+
behavior: default
14+
require_changes: false

0 commit comments

Comments
 (0)