Skip to content

Commit 6259d8a

Browse files
Adds SPI test to CI
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
1 parent 3c89602 commit 6259d8a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,40 @@ jobs:
150150
path: |
151151
./build/reports/
152152
153+
spi-tests:
154+
name: spi-tests
155+
needs: publish-components-to-maven-local
156+
strategy:
157+
fail-fast: false
158+
matrix:
159+
jdk: [21]
160+
platform: [ubuntu-latest, windows-latest]
161+
runs-on: ${{ matrix.platform }}
162+
163+
steps:
164+
- name: Set up JDK for build and test
165+
uses: actions/setup-java@v4
166+
with:
167+
distribution: temurin # Temurin is a distribution of adoptium
168+
java-version: ${{ matrix.jdk }}
169+
170+
- name: Checkout security
171+
uses: actions/checkout@v4
172+
173+
- name: Run SPI Tests
174+
uses: gradle/gradle-build-action@v3
175+
with:
176+
cache-disabled: true
177+
arguments: |
178+
:opensearch-resource-sharing-spi:tests -Dbuild.snapshot=false
179+
180+
- uses: actions/upload-artifact@v4
181+
if: always()
182+
with:
183+
name: spi-${{ matrix.platform }}-JDK${{ matrix.jdk }}-reports
184+
path: |
185+
./build/reports/
186+
153187
resource-tests:
154188
env:
155189
CI_ENVIRONMENT: resource-test

0 commit comments

Comments
 (0)