Skip to content

Commit

Permalink
Build: Test flink modules for both scala 2.11 and 2.12 (apache#4179)
Browse files Browse the repository at this point in the history
  • Loading branch information
openinx authored Mar 15, 2022
1 parent c6a770f commit f6c575f
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/flink-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,37 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
flink-tests:

# Only test the latest flink version with scala 2.11 for saving testing time.
flink-scala-2-11-tests:
runs-on: ubuntu-latest
strategy:
matrix:
jvm: [ 8, 11 ]
flink: [ '1.14' ]
env:
SPARK_LOCAL_IP: localhost
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jvm }}
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
- run: ./gradlew -DsparkVersions= -DhiveVersions= -DflinkVersions=${{ matrix.flink }} :iceberg-flink:iceberg-flink-${{ matrix.flink }}:check :iceberg-flink:iceberg-flink-runtime-${{ matrix.flink }}:check -DscalaVersion=2.11 -DknownScalaVersions=2.11 -Pquick=true -x javadoc
- uses: actions/upload-artifact@v2
if: failure()
with:
name: test logs
path: |
**/build/testlogs
# Test all flink versions with scala 2.12 for general validation.
flink-scala-2-12-tests:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit f6c575f

Please sign in to comment.