diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml new file mode 100644 index 000000000..00aabbfcd --- /dev/null +++ b/.github/workflows/scala.yml @@ -0,0 +1,20 @@ +name: Scala CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Run tests + run: sbt test diff --git a/build.sbt b/build.sbt index 8e4c256ae..d9710231c 100644 --- a/build.sbt +++ b/build.sbt @@ -1,9 +1,11 @@ +import ReleaseTransformations._ + +parallelExecution in ThisBuild := false + name := "overwatch" organization := "com.databricks.labs" -version := "0.5.0.1" - scalaVersion := "2.12.12" scalacOptions ++= Seq("-Xmax-classfile-name", "78") @@ -63,4 +65,19 @@ assemblyExcludedJars in assembly := { f.data.getName.contains("delta-core") || f.data.getName.contains("com.amazonaws") } -} \ No newline at end of file +} + +releasePublishArtifactsAction := PgpKeys.publishSigned.value + +releaseProcess := Seq[ReleaseStep]( + checkSnapshotDependencies, + inquireVersions, + runClean, + runTest, + setReleaseVersion, + commitReleaseVersion, + tagRelease, + publishArtifacts, + setNextVersion, + commitNextVersion +) \ No newline at end of file diff --git a/project/plugins.sbt b/project/plugins.sbt index 365e527c0..60de06cf7 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -3,4 +3,5 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") addSbtPlugin("io.get-coursier" % "sbt-coursier" % "2.0.0-RC6-8") addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.0.3") addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") -addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3") \ No newline at end of file +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3") +addSbtPlugin("com.github.sbt" % "sbt-release" % "1.0.15") \ No newline at end of file diff --git a/version.sbt b/version.sbt new file mode 100644 index 000000000..01120e350 --- /dev/null +++ b/version.sbt @@ -0,0 +1 @@ +ThisBuild / version := "0.5.2"