Skip to content

Commit f7a45db

Browse files
authored
Add mill-mima to check binary compatibility (#117)
1 parent 70df4e8 commit f7a45db

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/actions.yml

Lines changed: 11 additions & 0 deletions
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 all __.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/sourcecode' && contains(github.ref, 'refs/tags/')

build.sc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import mill._, scalalib._, scalajslib._, scalanativelib._, publish._
22
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version_mill0.9:0.1.1`
33
import de.tobiasroeser.mill.vcs.version.VcsVersion
4+
import $ivy.`com.github.lolgab::mill-mima_mill0.9:0.0.4`
5+
import com.github.lolgab.mill.mima._
46

57
val dottyVersions = sys.props.get("dottyVersion").toList
68

@@ -18,11 +20,13 @@ val scalaNativeVersions = for {
1820
scalaNativeV <- Seq("0.4.0")
1921
} yield (scalaV, scalaNativeV)
2022

21-
trait SourcecodeModule extends PublishModule {
23+
trait SourcecodeModule extends PublishModule with Mima {
2224
def artifactName = "sourcecode"
2325

2426
def publishVersion = VcsVersion.vcsState().format()
2527

28+
def mimaPreviousVersions = VcsVersion.vcsState().lastTag.toSeq
29+
2630
def pomSettings = PomSettings(
2731
description = artifactName(),
2832
organization = "com.lihaoyi",

0 commit comments

Comments
 (0)