diff --git a/.github/workflows/lint.yaml b/.github/workflows/CI.yaml similarity index 92% rename from .github/workflows/lint.yaml rename to .github/workflows/CI.yaml index a6b05a6..87d76d4 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/CI.yaml @@ -1,11 +1,11 @@ -name: Lint and verify +name: CI on: pull_request: workflow_dispatch: jobs: - lint: - runs-on: ubuntu-latest + ci: + runs-on: macos-latest steps: - uses: actions/checkout@v3 diff --git a/shared/src/desktopMain/kotlin/me/sujanpoudel/playdeals/common/domain/persistent/db/sqlDriver.desktop.kt b/shared/src/desktopMain/kotlin/me/sujanpoudel/playdeals/common/domain/persistent/db/sqlDriver.desktop.kt index 61996a0..245eb94 100644 --- a/shared/src/desktopMain/kotlin/me/sujanpoudel/playdeals/common/domain/persistent/db/sqlDriver.desktop.kt +++ b/shared/src/desktopMain/kotlin/me/sujanpoudel/playdeals/common/domain/persistent/db/sqlDriver.desktop.kt @@ -5,16 +5,15 @@ import app.cash.sqldelight.db.SqlDriver import app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver import me.sujanpoudel.mputils.paths.appDataDirectory import me.sujanpoudel.mputils.paths.utils.div +import me.sujanpoudel.playdeals.common.BuildKonfig import me.sujanpoudel.playdeals.common.Constants import me.sujanpoudel.playdeals.common.SqliteDatabase -import me.sujanpoudel.playdeals.common.BuildKonfig actual fun createSqlDriver(): SqlDriver { - val path = appDataDirectory(BuildKonfig.PACKAGE_NAME) / Constants.DATABASE_NAME return JdbcSqliteDriver( - url = "jdbc:sqlite:${path}", + url = "jdbc:sqlite:$path", schema = SqliteDatabase.Schema.synchronous(), migrateEmptySchema = true, )