diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 615035a..5893a72 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,5 +19,8 @@ jobs: with: distribution: temurin java-version: ${{ matrix.java }} + - uses: jodersky/setup-mill@v0.3.0 + with: + mill-version: 0.11.2 - name: Build and Test - run: sbt -v +test + run: mill test diff --git a/.gitignore b/.gitignore index 9e79245..09768f0 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,9 @@ metals.sbt .idea .idea_modules /.worksheet/ + +# Mill +out/ + +# Emacs +*.~undo-tree~ diff --git a/build.sbt b/build.sbt deleted file mode 100644 index 6ae5011..0000000 --- a/build.sbt +++ /dev/null @@ -1,12 +0,0 @@ -val scala3Version = "3.2.0" - -lazy val root = project - .in(file(".")) - .settings( - name := "qw.scala", - version := "0.1.0-SNAPSHOT", - - scalaVersion := scala3Version, - - libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test - ) diff --git a/build.sc b/build.sc new file mode 100644 index 0000000..237d926 --- /dev/null +++ b/build.sc @@ -0,0 +1,9 @@ +import mill._, scalalib._ + +object qw extends RootModule with ScalaModule { + def scalaVersion = "3.3.0" + def publishVersion = "0.1.1-SNAPSHOT" + object test extends ScalaTests with TestModule.Munit { + def ivyDeps = Agg(ivy"org.scalameta::munit::0.7.29") + } +} diff --git a/src/test/scala/com/github/windymelt/qw/SyntaxSuite.scala b/test/src/scala/com/github/windymelt/qw/SyntaxSuite.scala similarity index 100% rename from src/test/scala/com/github/windymelt/qw/SyntaxSuite.scala rename to test/src/scala/com/github/windymelt/qw/SyntaxSuite.scala