Skip to content

Commit

Permalink
Add Spark 3.1.2 / 3.2.0 crossbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Oct 18, 2021
1 parent c57c4f7 commit f51ebf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
os: [ubuntu-latest]
scala: [2.12.15]
java: [adopt@1.8]
sparkVersion: [3.2.0, 3.1.2]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand Down Expand Up @@ -66,6 +67,8 @@ jobs:
run: codecov -F ${{ matrix.scala }}

- name: Binary compatibility check
env:
SPARK_VERSION: ${{ matrix.sparkVersion }}
run: sbt ++${{ matrix.scala }} mimaReportBinaryIssues

publish:
Expand Down
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val sparkVersion = "3.2.0"
val sparkVersion = sys.env.get("SPARK_VERSION").getOrElse("3.2.0")
val catsCoreVersion = "2.6.1"
val catsEffectVersion = "2.4.0"
val catsMtlVersion = "0.7.1"
Expand Down Expand Up @@ -272,9 +272,11 @@ ThisBuild / githubWorkflowBuild := Seq(
)
)

ThisBuild / githubWorkflowBuildMatrixAdditions := Map("sparkVersion" -> List("3.2.0", "3.1.2"))
ThisBuild / githubWorkflowBuild += WorkflowStep.Sbt(
List("mimaReportBinaryIssues"),
name = Some("Binary compatibility check")
name = Some("Binary compatibility check"),
env = Map("SPARK_VERSION" -> "${{ matrix.sparkVersion }}")
)

ThisBuild / githubWorkflowPublishTargetBranches := Seq(
Expand Down

0 comments on commit f51ebf5

Please sign in to comment.