This is an automated email from the ASF dual-hosted git repository.

richox pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/auron.git


The following commit(s) were added to refs/heads/master by this push:
     new 37d3f6f6 [AURON #1449] introduce flink test workflow (#1450)
37d3f6f6 is described below

commit 37d3f6f6a8582c7a9cec345b9e8fdb5108e452cb
Author: zhangmang <[email protected]>
AuthorDate: Wed Oct 15 16:04:01 2025 +0800

    [AURON #1449] introduce flink test workflow (#1450)
    
    * [AURON #1449] introduce flink test workflow
    
    * fix workflow name
    
    * fix workflow
---
 .github/workflows/flink.yml   | 67 +++++++++++++++++++++++++++++++++++++++++++
 auron-flink-extension/pom.xml | 16 +++++++++++
 2 files changed, 83 insertions(+)

diff --git a/.github/workflows/flink.yml b/.github/workflows/flink.yml
new file mode 100644
index 00000000..55be02eb
--- /dev/null
+++ b/.github/workflows/flink.yml
@@ -0,0 +1,67 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: Flink
+
+on:
+  workflow_dispatch:
+  push:
+    branches:
+      - master
+      - branch-*
+  pull_request:
+    branches:
+      - master
+      - branch-*
+
+concurrency:
+  group: flink-${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  test-flink:
+    name: Test Flink ${{ matrix.flinkver }}
+    runs-on: ubuntu-24.04
+    strategy:
+      fail-fast: false
+      matrix:
+        flinkver: [ "1.18" ]
+        javaver: [ "8" ]
+        scalaver: [ "2.12" ]
+        module: [ "auron-flink-extension" ]
+        sparkver: [ "spark-3.5" ]
+
+    steps:
+    - name: Checkout Auron
+      uses: actions/checkout@v4
+
+    - name: Setup Java and Maven cache
+      uses: actions/setup-java@v4
+      with:
+        distribution: 'adopt-hotspot'
+        java-version: ${{ matrix.javaver }}
+        cache: 'maven'
+
+    - name: Test Flink Module
+      run: ./build/mvn -B test -pl ${{ matrix.module }} -am -Pscala-${{ 
matrix.scalaver }} -Pflink-${{ matrix.flinkver }} -P${{ matrix.sparkver }} 
-Prelease
+
+    - name: Upload reports
+      if: failure()
+      uses: actions/upload-artifact@v4
+      with:
+        name: ${{ matrix.module }}-test-report
+        path: ${{ matrix.module }}/target/surefire-reports
\ No newline at end of file
diff --git a/auron-flink-extension/pom.xml b/auron-flink-extension/pom.xml
index 4c2619f2..c795614b 100644
--- a/auron-flink-extension/pom.xml
+++ b/auron-flink-extension/pom.xml
@@ -288,4 +288,20 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>${maven.plugin.surefire.version}</version>
+        <!-- Note config is repeated in scalatest config -->
+        <configuration>
+          <includes>
+            <include>**/*ITCase.java</include>
+          </includes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>

Reply via email to