Skip to content

Commit

Permalink
chore: setup quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAlJarrah committed Dec 23, 2024
1 parent 858df2d commit ffc6004
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: PR Checks
on: pull_request

jobs:
unit-tests-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'coretto'
java-version: 8
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
working-directory: code
run: gradle clean build
1 change: 1 addition & 0 deletions code/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ apply from: "tasks-gradle/sdk-properties.gradle"
apply from: "tasks-gradle/apollo.gradle"
apply from: "tasks-gradle/publishing.gradle"
apply from: "tasks-gradle/dokka.gradle"
apply from: "tasks-gradle/coverage.gradle"
21 changes: 21 additions & 0 deletions code/tasks-gradle/coverage.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
kover {
reports {
total {
html {
htmlDir = file("$buildDir/reports/kover")
}
}
verify {
rule {
disabled = false
bound {
minValue = 100
}
}
}
}
}

tasks.named('koverVerify') {
finalizedBy 'koverHtmlReport'
}

0 comments on commit ffc6004

Please sign in to comment.