chore(deps): update dependency org.opensearch:opensearch-testcontainers to v4 #10660
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
| # This workflow will build a Java project with Maven | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| name: Java CI with Maven | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - support/2.3.X | |
| - support/3.0.X | |
| pull_request: | |
| branches: | |
| - develop | |
| - support/2.3.X | |
| - support/3.0.X | |
| jobs: | |
| build-jdk21: | |
| runs-on: ubuntu-latest | |
| name: Build project | |
| concurrency: | |
| # The commit SHA or the branch name of the pull request. See: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions | |
| group: ${{ github.event_name == 'pull_request' && github.head_ref || github.sha}} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Required by GIB to calculate Git diffs | |
| - name: Cache Maven packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'corretto' | |
| java-version: '21' | |
| - name: Determine GIB Reference | |
| id: gib-base | |
| run: | | |
| if [ "${{ github.event_name }}" == "pull_request" ]; then | |
| # For PRs, compare against the remote target branch | |
| echo "BASE_REF=refs/remotes/origin/${{ github.base_ref }}" >> $GITHUB_ENV | |
| else | |
| # For pushes, compare against the previous commit | |
| echo "BASE_REF=${{ github.event.before }}" >> $GITHUB_ENV | |
| fi | |
| - name: Check for SNAPSHOT dependencies in dependency management | |
| run: | | |
| ./mvnw help:effective-pom --batch-mode --no-transfer-progress -q > effective-pom.xml | |
| SNAPSHOTS=$(grep "SNAPSHOT" effective-pom.xml || true) | |
| rm -f effective-pom.xml | |
| if [ -n "$SNAPSHOTS" ]; then | |
| echo "::error::SNAPSHOT versions found in effective POM dependency management:" | |
| echo "$SNAPSHOTS" | |
| echo "Run 'mvn help:effective-pom | grep SNAPSHOT' locally to find them." | |
| exit 1 | |
| fi | |
| - name: Build with Maven | |
| run: | | |
| ./mvnw -version && whoami && umask -S && umask a+rw && umask -S && \ | |
| ./mvnw clean verify \ | |
| -P docker-clean \ | |
| -Dhttp.keepAlive=false \ | |
| -Dmaven.wagon.http.pool=false \ | |
| -Dmaven.wagon.http.retryHandler.count=3 \ | |
| --no-snapshot-updates \ | |
| --batch-mode \ | |
| --no-transfer-progress \ | |
| -Dgib.referenceBranch=$BASE_REF \ | |
| -Dgib.buildDownstream=always | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |