You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2024/04/23 05:44:23 UTC
(spark-kubernetes-operator) branch main updated: [SPARK-47943] Add `GitHub Action` CI for Java Build and Test
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 <zh...@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 <zh...@apple.com>
Signed-off-by: Dongjoon Hyun <do...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org