Skip to content

Commit

Permalink
Fixes artifact and integ-test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Jan 19, 2025
1 parent 6e0a87b commit a22313f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,18 @@ jobs:
- name: Checkout security
uses: actions/checkout@v4

- name: Run Integration Tests
- name: Publish SPI to Local Maven
uses: gradle/gradle-build-action@v3
with:
cache-disabled: true
arguments: |
integrationTest -Dbuild.snapshot=false
arguments: :opensearch-resource-sharing-spi:publishToMavenLocal -Dbuild.snapshot=false

- name: Publish SPI to Local Maven
- name: Run Integration Tests
uses: gradle/gradle-build-action@v3
with:
cache-disabled: true
arguments: :opensearch-resource-sharing-spi:publishToMavenLocal -Dbuild.snapshot=false
arguments: |
integrationTest -Dbuild.snapshot=false
- name: Run SampleResourcePlugin Integration Tests
uses: gradle/gradle-build-action@v3
Expand Down Expand Up @@ -158,6 +158,12 @@ jobs:
- name: Checkout security
uses: actions/checkout@v4

- name: Publish SPI to Local Maven
uses: gradle/gradle-build-action@v3
with:
cache-disabled: true
arguments: :opensearch-resource-sharing-spi:publishToMavenLocal -Dbuild.snapshot=false

- name: Run Resource Tests
uses: gradle/gradle-build-action@v3
with:
Expand Down Expand Up @@ -284,6 +290,6 @@ jobs:
test -s ./build/distributions/opensearch-security-$security_plugin_version.pom && \
test -s ./sample-resource-plugin/build/distributions/opensearch-sample-resource-plugin-$security_plugin_version.pom
- name: List files in build directory on failure
if: failure()
run: ls -al ./build/distributions/
- name: List files in build directory on failure
if: failure()
run: ls -al ./build/distributions/

0 comments on commit a22313f

Please sign in to comment.