Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mill-mima to check binary compatibility #33

Merged
merged 1 commit into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/geny' && 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 dottyCustomVersion = sys.props.get("dottyVersion")

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

trait GenyPublishModule extends PublishModule {
trait GenyPublishModule extends PublishModule with Mima {
def artifactName = "geny"

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

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

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