Skip to content

Commit 9090d45

Browse files
authored
Add mill-mima to check binary compatibility (com-lihaoyi#255)
* Add mill-mima to check binary compatibility * Update Mill to 0.9.8 * Update to mill-mima 0.0.4 * Fetch all git history when checking binary compatibility
1 parent bac5235 commit 9090d45

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
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/utest' && 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,9 +20,11 @@ val scalaNativeVersions = for {
1820
scalaNativeV <- Seq("0.4.0")
1921
} yield (scalaV, scalaNativeV)
2022

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

26+
def mimaPreviousVersions = VcsVersion.vcsState().lastTag.toSeq
27+
2428
def publishVersion = VcsVersion.vcsState().format()
2529

2630
def pomSettings = PomSettings(

mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This is a wrapper script, that automatically download mill from GitHub release pages
44
# You can give the required mill version with MILL_VERSION env variable
55
# If no version is given, it falls back to the value of DEFAULT_MILL_VERSION
6-
DEFAULT_MILL_VERSION=0.9.6-61-bd7927
6+
DEFAULT_MILL_VERSION=0.9.8
77

88
set -e
99

0 commit comments

Comments
 (0)