aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/java_unit_tests.yml
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2025-11-19 21:22:18 -0800
committerGitHub <noreply@github.com>2025-11-19 21:22:18 -0800
commitc14e513964ff708b7ace352b7e86198b3ebe6827 (patch)
treefc64d74d241faf292d2b37177e266614e15d9d18 /.github/workflows/java_unit_tests.yml
parent7dce429e61037529694727134f828d273704f8ec (diff)
downloadseaweedfs-c14e513964ff708b7ace352b7e86198b3ebe6827.tar.xz
seaweedfs-c14e513964ff708b7ace352b7e86198b3ebe6827.zip
chore(deps): bump org.apache.hadoop:hadoop-common from 3.2.4 to 3.4.0 in /other/java/hdfs3 (#7512)
* chore(deps): bump org.apache.hadoop:hadoop-common in /other/java/hdfs3 Bumps org.apache.hadoop:hadoop-common from 3.2.4 to 3.4.0. --- updated-dependencies: - dependency-name: org.apache.hadoop:hadoop-common dependency-version: 3.4.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * add java client unit tests * Update dependency-reduced-pom.xml * add java integration tests * fix * fix buffer --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: chrislu <chris.lu@gmail.com>
Diffstat (limited to '.github/workflows/java_unit_tests.yml')
-rw-r--r--.github/workflows/java_unit_tests.yml64
1 files changed, 64 insertions, 0 deletions
diff --git a/.github/workflows/java_unit_tests.yml b/.github/workflows/java_unit_tests.yml
new file mode 100644
index 000000000..e79499b04
--- /dev/null
+++ b/.github/workflows/java_unit_tests.yml
@@ -0,0 +1,64 @@
+name: Java Client Unit Tests
+
+on:
+ push:
+ branches: [ master ]
+ paths:
+ - 'other/java/**'
+ - '.github/workflows/java_unit_tests.yml'
+ pull_request:
+ branches: [ master ]
+ paths:
+ - 'other/java/**'
+ - '.github/workflows/java_unit_tests.yml'
+
+jobs:
+ test:
+ name: Java Unit Tests
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ java: ['8', '11', '17', '21']
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Java
+ uses: actions/setup-java@v4
+ with:
+ java-version: ${{ matrix.java }}
+ distribution: 'temurin'
+ cache: 'maven'
+
+ - name: Build and Install SeaweedFS Client
+ working-directory: other/java/client
+ run: |
+ mvn clean install -DskipTests -Dmaven.javadoc.skip=true -Dgpg.skip=true
+
+ - name: Run Client Unit Tests
+ working-directory: other/java/client
+ run: |
+ mvn test -Dtest=SeaweedReadTest,SeaweedCipherTest
+
+ - name: Run HDFS2 Configuration Tests
+ working-directory: other/java/hdfs2
+ run: |
+ mvn test -Dtest=SeaweedFileSystemConfigTest -Dmaven.javadoc.skip=true -Dgpg.skip=true
+
+ - name: Run HDFS3 Configuration Tests
+ working-directory: other/java/hdfs3
+ run: |
+ mvn test -Dtest=SeaweedFileSystemConfigTest -Dmaven.javadoc.skip=true -Dgpg.skip=true
+
+ - name: Upload Test Reports
+ if: always()
+ uses: actions/upload-artifact@v5
+ with:
+ name: test-reports-java-${{ matrix.java }}
+ path: |
+ other/java/client/target/surefire-reports/
+ other/java/hdfs2/target/surefire-reports/
+ other/java/hdfs3/target/surefire-reports/
+