Add support for Apache Spark 4.0.0-SNAPSHOT with fewer exceptions (#358) #169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Binary Compatibility | |
on: | |
push: | |
branches: [ master, branch-3.2 ] | |
pull_request: | |
branches: [ master, branch-3.2 ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
spark: [ 3.2 ] | |
scala: [ 2.12, 2.13 ] | |
name: Spark ${{ matrix.spark }}, Scala ${{ matrix.scala }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-${{ matrix.scala }}-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.scala }}- | |
- name: Switch scala version | |
run: mvn scala-cross-build:change-version -Pscala-${{ matrix.scala }} | |
- name: Check binary compatibility | |
run: mvn clean test -DskipTests -Pcompatibility-check,scala-${{ matrix.scala }} |