Skip to content

Commit

Permalink
feat: merging kover report and disable main branch push on workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
isfaaghyth committed Aug 25, 2024
1 parent 73325de commit 51ff019
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand All @@ -28,7 +26,7 @@ jobs:
uses: gradle/gradle-build-action@v2

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

- name: Add coverage report to PR
if: ${{ github.event_name == 'pull_request' }}
Expand Down
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ plugins {
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.jetbrains.kotlin.jvm) apply false
alias(libs.plugins.kotlinxSerialization) apply false
alias(libs.plugins.kover) apply false
alias(libs.plugins.kover) apply true
}

dependencies {
kover(project(":app"))
kover(project(":gdg-chapter"))
kover(project(":gdg-events"))
}

0 comments on commit 51ff019

Please sign in to comment.