Skip to content

Commit 7dad934

Browse files
committed
test: add Java resilience tests to CI pipeline
1 parent bd85694 commit 7dad934

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/mvn-test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ jobs:
152152
**/jacoco*.xml
153153
retention-days: 1
154154

155+
156+
155157
java-e2e-tests:
156158
runs-on: ubuntu-latest
157159
needs: build-and-package
@@ -196,6 +198,50 @@ jobs:
196198
list-tests: "failed"
197199
reporter: java-junit
198200

201+
java-resilience-tests:
202+
runs-on: ubuntu-latest
203+
needs: build-and-package
204+
steps:
205+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
206+
207+
- name: Set up JDK 21
208+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
209+
with:
210+
distribution: "temurin"
211+
java-version: 21
212+
cache: "maven"
213+
214+
- name: Restore Maven artifacts
215+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
216+
with:
217+
path: ~/.m2/repository
218+
key: maven-repo-${{ github.run_id }}-${{ github.run_attempt }}
219+
220+
- name: Restore Docker image
221+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
222+
with:
223+
path: /tmp/arcadedb-image.tar
224+
key: docker-image-${{ github.run_id }}-${{ github.run_attempt }}
225+
226+
- name: Load Docker image
227+
run: docker load < /tmp/arcadedb-image.tar
228+
229+
- name: Resilience Tests
230+
run: ./mvnw verify -pl resilience
231+
env:
232+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
233+
ARCADEDB_DOCKER_IMAGE: ${{ needs.build-and-package.outputs.image-tag }}
234+
235+
- name: Resilinece Tests Reporter
236+
uses: dorny/test-reporter@6e6a65b7a0bd2c9197df7d0ae36ac5cee784230c # v2.0.0
237+
if: success() || failure()
238+
with:
239+
name: Java Resilience Tests Report
240+
path: "resilience/target/surefire-reports/TEST*.xml"
241+
list-suites: "failed"
242+
list-tests: "failed"
243+
reporter: java-junit
244+
199245
js-e2e-tests:
200246
runs-on: ubuntu-latest
201247
needs: build-and-package

0 commit comments

Comments
 (0)