-
Notifications
You must be signed in to change notification settings - Fork 132
43 lines (40 loc) · 1.26 KB
/
Copy path_integration-test.yml
File metadata and controls
43 lines (40 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Integration test
on:
workflow_call:
permissions:
contents: read
jobs:
integration-test:
runs-on: ubuntu-latest
services:
# TODO swap to testcontainers for integration tests
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.2
env:
discovery.type: single-node
xpack.security.enabled: "false"
ports:
- 9200:9200
options: >-
--health-cmd "curl -s http://localhost:9200/_cluster/health || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Set up Java
uses: ./.github/actions/setup-java
- name: Integration tests (Elasticsearch-backed)
run: >
mvn --batch-mode install -P it-tests,docker-tests
-Dskip-executable-jar
-pl services/save-and-restore -am
- name: Upload integration test reports
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
if: always()
with:
name: integration-test-reports
path: services/save-and-restore/target/failsafe-reports/**
if-no-files-found: ignore