Skip to content

Commit

Permalink
Merge pull request #187 from Automattic/adam/179_binary_compatibility…
Browse files Browse the repository at this point in the history
…_validator

Integrate Binary Compatibility Validator
  • Loading branch information
AdamGrzybkowski committed Jun 24, 2024
2 parents 5007a19 + 2c00152 commit 2081c7b
Show file tree
Hide file tree
Showing 4 changed files with 683 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ steps:
artifact_paths:
- "**/build/test-results/*/*.xml"

- label: "Binary compatibility check"
if: build.pull_request.base_branch == "trunk"
command: |
echo "--- Validating binary compatibility"
./gradlew apiCheck
- wait: ~
if: build.branch == "trunk" || build.tag != null

Expand Down
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ plugins {

// Roborazzi
id("io.github.takahirom.roborazzi") version "1.15.0" apply false
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.15.0-Beta.2"
}

buildscript {
Expand Down Expand Up @@ -49,6 +50,14 @@ subprojects {
}
}

apiValidation {

/**
* Sub-projects that are excluded from API validation
*/
ignoredProjects.addAll(listOf("demo-app"))
}

// Semantic versioning for release version
val versionName = "1.0.0"

Expand Down
Loading

0 comments on commit 2081c7b

Please sign in to comment.