fix(seaweed-volume): eliminate global S3 tier registry races in tests #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v6 | |
| - name: Set up Java | |
| uses: actions/setup-java@v5 | |
| 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 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@v7 | |
| with: | |
| name: test-reports-java-${{ matrix.java }} | |
| path: | | |
| other/java/client/target/surefire-reports/ | |
| other/java/hdfs3/target/surefire-reports/ | |