This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-management.git


The following commit(s) were added to refs/heads/main by this push:
     new 1ad79900 run mima checks (#138)
1ad79900 is described below

commit 1ad7990004e9c5ecdf2604de7648f3602cfa607c
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Nov 13 09:18:54 2023 +0100

    run mima checks (#138)
    
    * run mima checks
    
    * hardcode mima version due to build issues
---
 .github/workflows/mima-check.yml | 37 +++++++++++++++++++++++++++++++++++++
 build.sbt                        |  8 +++++---
 2 files changed, 42 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/mima-check.yml b/.github/workflows/mima-check.yml
new file mode 100644
index 00000000..7bb5e339
--- /dev/null
+++ b/.github/workflows/mima-check.yml
@@ -0,0 +1,37 @@
+name: MiMa Check
+
+on:
+  workflow_dispatch:
+  pull_request:
+  push:
+    branches:
+      - main
+    tags-ignore: [ v.* ]
+
+jobs:
+  test:
+    name: Build and Test
+    runs-on: ubuntu-22.04
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+
+      - name: Checkout GitHub merge
+        if: github.event.pull_request
+        run: |-
+          git fetch origin pull/${{ github.event.pull_request.number 
}}/merge:scratch
+          git checkout scratch
+
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
+        with:
+          distribution: temurin
+          java-version: 8
+
+      - name: Cache Coursier cache
+        uses: coursier/[email protected]
+
+      - name: Check code formatted
+        run: sbt +mimaReportBinaryIssues
diff --git a/build.sbt b/build.sbt
index 9d6c7da1..2be63b8d 100644
--- a/build.sbt
+++ b/build.sbt
@@ -66,7 +66,9 @@ lazy val root = project
     GlobalScope / parallelExecution := false)
   .enablePlugins(NoPublish)
 
-lazy val mimaPreviousArtifactsSet = mimaPreviousArtifacts := Set.empty // 
temporarily disable mima checks
+val mimaCompareVersion = "1.0.0"
+lazy val mimaPreviousArtifactsSet = mimaPreviousArtifacts := Set(
+  organization.value %% name.value % mimaCompareVersion)
 
 lazy val discoveryKubernetesApi = pekkoModule("discovery-kubernetes-api")
   .enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
@@ -129,10 +131,10 @@ lazy val managementLoglevelsLogback = 
pekkoModule("management-loglevels-logback"
 
 lazy val managementLoglevelsLog4j2 = pekkoModule("management-loglevels-log4j2")
   .enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
-  .disablePlugins(MimaPlugin)
   .settings(
     name := "pekko-management-loglevels-log4j2",
-    libraryDependencies := Dependencies.managementLoglevelsLog4j2)
+    libraryDependencies := Dependencies.managementLoglevelsLog4j2,
+    mimaPreviousArtifactsSet)
   .dependsOn(management)
 
 lazy val managementClusterHttp = pekkoModule("management-cluster-http")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to