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

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 4a5febd  [SPARK-47943] Add `GitHub Action` CI for Java Build and Test
4a5febd is described below

commit 4a5febd8f48716c0506738fc6a5fd58afb95779f
Author: zhou-jiang <zhou_ji...@apple.com>
AuthorDate: Mon Apr 22 22:44:17 2024 -0700

    [SPARK-47943] Add `GitHub Action` CI for Java Build and Test
    
    ### What changes were proposed in this pull request?
    
    This PR adds an additional CI build task for operator.
    
    ### Why are the changes needed?
    
    The additional CI task is needed in order to build and test Java code for 
upcoming operator pull requests.
    
    When Java plugin is enabled and Java source is checked in, `./gradlew 
build` 
[task](https://docs.gradle.org/3.3/userguide/java_plugin.html#sec:java_tasks) 
by default includes a set of tasks to compile and run tests. This can serve as 
pull request build.
    
    ### Does this PR introduce _any_ user-facing change?
    
    no
    
    ### How was this patch tested?
    
    tested locally.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    no
    
    Closes #7 from jiangzho/ci.
    
    Authored-by: zhou-jiang <zhou_ji...@apple.com>
    Signed-off-by: Dongjoon Hyun <dongj...@apache.org>
---
 .github/workflows/build_and_test.yml | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build_and_test.yml 
b/.github/workflows/build_and_test.yml
index 6a5a147..887119f 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -26,4 +26,20 @@ jobs:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         with:
           config: .github/.licenserc.yaml
-
+  build-test:
+    name: "Build Test CI"
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java-version: [ 17, 21 ]
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v3
+      - name: Set up JDK ${{ matrix.java-version }}
+        uses: actions/setup-java@v2
+        with:
+          java-version: ${{ matrix.java-version }}
+          distribution: 'adopt'
+      - name: Build with Gradle
+        run: |
+          set -o pipefail; ./gradlew build; set +o pipefail


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to