Skip to content

Commit

Permalink
Add mill-mima to check binary compatibility (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab authored Jul 28, 2021
1 parent 35b5bf9 commit 219ec0c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ jobs:
java-version: 8
- name: Run tests
run: ./mill -i all __.publishArtifacts __.test
check-binary-compatibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Check Binary Compatibility
run: ./mill -i __.mimaReportBinaryIssues

publish-sonatype:
if: github.repository == 'com-lihaoyi/fansi' && contains(github.ref, 'refs/tags/')
Expand Down
6 changes: 5 additions & 1 deletion build.sc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import mill._, scalalib._, scalajslib._, scalanativelib._, publish._
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version_mill0.9:0.1.1`
import de.tobiasroeser.mill.vcs.version.VcsVersion
import $ivy.`com.github.lolgab::mill-mima_mill0.9:0.0.4`
import com.github.lolgab.mill.mima._

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

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

trait FansiModule extends PublishModule {
trait FansiModule extends PublishModule with Mima {
def artifactName = "fansi"

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

def mimaPreviousVersions = VcsVersion.vcsState().lastTag.toSeq

def pomSettings = PomSettings(
description = artifactName(),
organization = "com.lihaoyi",
Expand Down

0 comments on commit 219ec0c

Please sign in to comment.