Add Kotlinx Kover test coverage calculator (#199)
* Add Kotlin Kover * Add AuthKtorConfiguration tests * Ensure at least 25% code coverage * Exclude Previews from code coverage * Specify Kover report path for SonarQube * Add Kover xml report task * Extract sonar to a separate step * Add some exclusions and minimum coverage * Exclude Hilt-generated classes * Add shopping list view model tests * Reduce the coverage requirement
This commit is contained in:
7
.github/workflows/check.yml
vendored
7
.github/workflows/check.yml
vendored
@@ -23,10 +23,13 @@ jobs:
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a
|
||||
|
||||
- name: Run tests
|
||||
- name: Checks
|
||||
run: ./gradlew check :app:koverXmlReportRelease :app:koverVerifyRelease
|
||||
|
||||
- name: SonarCloud
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
run: ./gradlew check sonar --no-configuration-cache --no-daemon
|
||||
run: ./gradlew sonar
|
||||
|
||||
- name: Publish test reports
|
||||
uses: mikepenz/action-junit-report@0a8a5ba57593d67b2e45de2c543b438412382b7b
|
||||
|
||||
Reference in New Issue
Block a user