You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bahir.apache.org by es...@apache.org on 2021/11/26 19:15:14 UTC
[bahir-flink] 01/04: [BAHIR-288] Add github actions
This is an automated email from the ASF dual-hosted git repository.
eskabetxe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bahir-flink.git
commit 3d5c81c18dcf465a1325f1d0256982bb8462f550
Author: Joao Boto <bo...@boto.pro>
AuthorDate: Sun Nov 21 21:11:12 2021 +0100
[BAHIR-288] Add github actions
---
.github/workflows/maven-ci.yml | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml
new file mode 100644
index 0000000..12195c4
--- /dev/null
+++ b/.github/workflows/maven-ci.yml
@@ -0,0 +1,31 @@
+name: Java CI with Maven
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: ['8', '11']
+ flink-version: ['1.12.2']
+ scala-version: ['2.11', '2.12']
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '${{ matrix.java }}'
+ distribution: 'adopt'
+ cache: maven
+ - name: Change scala version
+ run: ./dev/change-scala-version.sh ${{ matrix.scala-version }}
+ shell: bash
+ - name: Build with Maven
+ run: mvn -q clean verify -Dscala-${{ matrix.scala-version }} -Dflink.version=${{ matrix.flink-version }}