Support elastic Version type (#34) #67
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: Build | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release/**' | |
pull_request: | |
env: | |
# Without "-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false" maven tend to fail due to the following error: | |
# Failed to read artifact descriptor for <some artifact>: | |
# Could not transfer artifact <some artifact> from/to central (https://repo.maven.apache.org/maven2): | |
# transfer failed for https://repo.maven.apache.org/maven2/<some artifact>: Connection timed out (Read failed) | |
# More precisely, mvn fails to fetch the first dependency from a maven repo after a longer pause between two | |
# consecutive fetches (e.g. when there were tests running for at last several minutes). | |
# See: https://stackoverflow.com/a/58769870 | |
MAVEN_CLI_OPTS: "-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false" | |
JAVA_ADDITIONAL_OPTS: "" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flink: [ "1.17.2", "1.18.1", "1.19.0" ] | |
jdk: [ "11" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.jdk }} | |
distribution: 'adopt' | |
cache: maven | |
- name: Build for Flink ${{ matrix.flink }} | |
run: mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS -Dflink.version=${{ matrix.flink }} install -DskipTests | |
- name: Tests for Flink ${{ matrix.flink }} | |
run: mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS -Dflink.version=${{ matrix.flink }} verify |