Skip to content

Commit

Permalink
Disable verify database migrations tasks in check
Browse files Browse the repository at this point in the history
  • Loading branch information
InvictusRMC committed Feb 27, 2024
1 parent a058852 commit 06acb7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ jobs:
distribution: 'zulu'
java-version: '17'

# TODO: Without this step, the Gradle check task fails with the following error:
# Execution failed for task ':common:verifyDebugDatabaseMigration'.
# > A failure occurred while executing app.cash.sqldelight.gradle.VerifyMigrationTask$VerifyMigrationAction
# > No suitable driver found for jdbc:sqlite:
- name: Run verifyDebugDatabase
run: bash ./gradlew verifyDebugDatabaseMigration

- name: Run check
run: bash ./gradlew check

Expand Down
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ allprojects {

}

// TODO: VerifyDebugDatabaseMigration fails, even though it is not enabled. Disabled for now.
// Execution failed for task ':common:verifyDebugDatabaseMigration'.
// > A failure occurred while executing app.cash.sqldelight.gradle.VerifyMigrationTask$VerifyMigrationAction
// > No suitable driver found for jdbc:sqlite:
gradle.taskGraph.whenReady { TaskExecutionGraph taskGraph ->
if (taskGraph.hasTask("check")) {
verifyDebugDatabaseMigration.enabled = false
verifyReleaseDatabaseMigration.enabled = false
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

0 comments on commit 06acb7a

Please sign in to comment.