This repository was archived by the owner on Oct 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 77
77
key : ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }}
78
78
- name : Run scapegoat
79
79
run : sbt scapegoat
80
+
81
+ mima :
82
+ name : Report Binary Issues
83
+ runs-on : ubuntu-latest
84
+ steps :
85
+ - uses : actions/checkout@v2
86
+ - name : Cache SBT & ivy cache
87
+ uses : actions/cache@v2
88
+ with :
89
+ path : |
90
+ ~/.ivy2/cache
91
+ ~/.sbt
92
+ key : ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }}
93
+ - name : Run mima
94
+ run : sbt mimaReportBinaryIssues
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ lazy val root = (project in file("."))
7
7
homepage := Some (url(" https://github.com/moia-oss/scala-http-client" )),
8
8
scalaVersion := " 2.13.4" ,
9
9
crossScalaVersions := List (" 2.13.4" , " 2.12.13" ),
10
+ versionScheme := Some (" early-semver" ),
10
11
scalacOptions ++= {
11
12
CrossVersion .partialVersion(scalaVersion.value) match {
12
13
case Some ((2 , 12 )) => scalacOptions_2_12
@@ -28,6 +29,7 @@ lazy val root = (project in file("."))
28
29
GitVersioning ,
29
30
GitBranchPrompt
30
31
)
32
+ .settings(mimaSettings)
31
33
32
34
val akkaVersion = " 2.6.12"
33
35
val akkaHttpVersion = " 10.2.3"
@@ -117,3 +119,7 @@ lazy val sbtGitSettings = Seq(
117
119
case _ => None
118
120
}
119
121
)
122
+
123
+ lazy val mimaSettings = Seq (
124
+ mimaPreviousArtifacts := Set (" io.moia" %% " scala-http-client" % " 4.0.0" )
125
+ )
Original file line number Diff line number Diff line change @@ -14,3 +14,6 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5")
14
14
addSbtPlugin(" com.github.sbt" % " sbt-pgp" % " 2.1.2" )
15
15
16
16
addSbtPlugin(" com.typesafe.sbt" % " sbt-git" % " 1.0.0" )
17
+
18
+ // sbt> mimaReportBinaryIssues
19
+ addSbtPlugin(" com.typesafe" % " sbt-mima-plugin" % " 0.8.1" )
You can’t perform that action at this time.
0 commit comments