Skip to content

Commit

Permalink
Add sbt-version-policy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Sep 12, 2024
1 parent 3c19fcf commit 1e94eaa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
- name: Check that workflows are up to date
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck

- name: Report binary compatibility issues
run: sbt '++ ${{ matrix.scala }}' mimaReportBinaryIssues
- name: Report version policy issues
run: sbt '++ ${{ matrix.scala }}' versionPolicyCheck

- name: Build project
run: sbt '++ ${{ matrix.scala }}' clean coverage test
Expand Down
11 changes: 6 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ val pekkoHttpVersion = "1.0.1"
val jawnVersion = "1.6.0"
val scalaTestVersion = "3.2.19"

ThisBuild / crossScalaVersions := Seq(scala212Version, scala213Version, scala3Version)
ThisBuild / scalaVersion := scala213Version
ThisBuild / organization := "org.mdedetrich"
ThisBuild / versionScheme := Some(VersionScheme.EarlySemVer)
ThisBuild / crossScalaVersions := Seq(scala212Version, scala213Version, scala3Version)
ThisBuild / scalaVersion := scala213Version
ThisBuild / organization := "org.mdedetrich"
ThisBuild / versionScheme := Some(VersionScheme.EarlySemVer)
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible

lazy val streamJson = project
.in(file("stream-json"))
Expand Down Expand Up @@ -158,7 +159,7 @@ ThisBuild / scalacOptions ++= {
ThisBuild / githubWorkflowTargetBranches := Seq("main") // Once we have branches per version, add the pattern here

ThisBuild / githubWorkflowBuild := Seq(
WorkflowStep.Sbt(List("mimaReportBinaryIssues"), name = Some("Report binary compatibility issues")),
WorkflowStep.Sbt(List("versionPolicyCheck"), name = Some("Report version policy issues")),
WorkflowStep.Sbt(List("clean", "coverage", "test"), name = Some("Build project"))
)

Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.2.0
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.13")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.24.0")
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")

0 comments on commit 1e94eaa

Please sign in to comment.