Skip to content

Commit

Permalink
ci: code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
Irineu333 committed Sep 27, 2023
1 parent 892a24f commit 2478da5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/coverage-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: coverage ci

on:
pull_request:
branches: [ master, develop ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle

- name: Generate coverage report
run: ./gradlew koverXmlReport

- name: Upload coverage report
uses: codecov/codecov-action@v2
with:
files: build/reports/kover/report.xml
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
kotlin("jvm") version "1.9.0"
id("java-library")
id("maven-publish")
id("org.jetbrains.kotlinx.kover") version "0.7.3"
}

group = "com.neo.resource"
Expand Down

0 comments on commit 2478da5

Please sign in to comment.