diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5d5e3430d..50a12c25bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,12 +6,34 @@ on: - main - 1.* - 2.* + - * pull_request: env: GRADLE_OPTS: -Dhttp.keepAlive=false jobs: + publish-maven-local: + runs-on: ubuntu-latest + steps: + - name: Set up JDK for build and test + uses: actions/setup-java@v3 + with: + distribution: temurin # Temurin is a distribution of adoptium + java-version: 17 + + - name: Checkout core + uses: actions/checkout@v4 + with: + repository: 'cwperks/OpenSearch' + ref: 'authn-before-compress' + path: 'OpenSearch' + + - name: Publish to Maven Local + run: | + cd OpenSearch + ./gradlew publishToMavenLocal + generate-test-list: runs-on: ubuntu-latest outputs: @@ -33,7 +55,9 @@ jobs: test: name: test - needs: generate-test-list + needs: + - publish-maven-local + - generate-test-list strategy: fail-fast: false matrix: