Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Sep 9, 2024
1 parent 6f390d2 commit 7648445
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: ci

on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- main
Expand Down
4 changes: 2 additions & 2 deletions scalasql/test/src/WorldSqlTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ object WorldSqlTests extends TestSuite {
)

val db = dbClient.getAutoCommitClientConnection
db.updateRaw(os.read(os.Path("MILL_TEST_RESOURCE_FOLDER") / "world-schema.sql"))
db.updateRaw(os.read(os.Path("MILL_TEST_RESOURCE_FOLDER") / "world-data.sql"))
db.updateRaw(os.read(os.Path(sys.env("MILL_TEST_RESOURCE_FOLDER")) / "world-schema.sql"))
db.updateRaw(os.read(os.Path(sys.env("MILL_TEST_RESOURCE_FOLDER")) / "world-data.sql"))
// We use `dbClient.getAutoCommitClientConnection` in order to create a client that
// will automatically run every SQL command in a new transaction and commit it. For
// the majority of examples in this page, the exact transaction configuration doesn't
Expand Down
4 changes: 2 additions & 2 deletions scalasql/test/src/utils/TestChecker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class TestChecker(
val autoCommitConnection = dbClient.getAutoCommitClientConnection
def reset() = {
autoCommitConnection.updateRaw(
os.read(os.Path("MILL_TEST_RESOURCE_FOLDER") / testSchemaFileName)
os.read(os.Path(sys.env("MILL_TEST_RESOURCE_FOLDER")) / testSchemaFileName)
)
autoCommitConnection.updateRaw(
os.read(os.Path("MILL_TEST_RESOURCE_FOLDER") / testDataFileName)
os.read(os.Path(sys.env("MILL_TEST_RESOURCE_FOLDER")) / testDataFileName)
)
}

Expand Down

0 comments on commit 7648445

Please sign in to comment.