Skip to content

Commit f74e3a0

Browse files
authored
Add mill-mima to check binary compatibility (#90)
1 parent ecd5647 commit f74e3a0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/actions.yml

+11
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ jobs:
1616
java-version: 8
1717
- name: Run tests
1818
run: ./mill -i __.publishArtifacts __.test
19+
check-binary-compatibility:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 0
25+
- uses: actions/setup-java@v1
26+
with:
27+
java-version: 8
28+
- name: Check Binary Compatibility
29+
run: ./mill -i __.mimaReportBinaryIssues
1930

2031
publish-sonatype:
2132
if: github.repository == 'com-lihaoyi/requests-scala' && contains(github.ref, 'refs/tags/')

build.sc

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ import mill.scalalib.publish.{Developer, License, PomSettings, VersionControl}
33
import scalalib._
44
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version_mill0.9:0.1.1`
55
import de.tobiasroeser.mill.vcs.version.VcsVersion
6+
import $ivy.`com.github.lolgab::mill-mima_mill0.9:0.0.4`
7+
import com.github.lolgab.mill.mima._
68

79
val dottyVersion = Option(sys.props("dottyVersion"))
810

911
object requests extends Cross[RequestsModule]((List("2.12.13", "2.13.5", "2.11.12", "3.0.0") ++ dottyVersion): _*)
10-
class RequestsModule(val crossScalaVersion: String) extends CrossScalaModule with PublishModule {
12+
class RequestsModule(val crossScalaVersion: String) extends CrossScalaModule with PublishModule with Mima {
1113
def publishVersion = VcsVersion.vcsState().format()
14+
def mimaPreviousVersions = VcsVersion.vcsState().lastTag.toSeq
1215
def artifactName = "requests"
1316
def pomSettings = PomSettings(
1417
description = "Scala port of the popular Python Requests HTTP client",

0 commit comments

Comments
 (0)