forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.54 KB
/
data-prepper-trace-analytics-service-map-e2e-tests.yml
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
44
45
46
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Data Prepper Trace Analytics Service Map End-to-end test with Gradle
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
java: [14]
runs-on: ubuntu-latest
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
# TODO: replace local built OpenSearch artifact with the public artifact
- name: Checkout OpenSearch
uses: actions/checkout@v2
with:
repository: 'opensearch-project/OpenSearch'
path: OpenSearch
ref: '1.0.0-alpha2'
- name: Build OpenSearch
working-directory: ./OpenSearch
run: ./gradlew publishToMavenLocal -Dbuild.version_qualifier=alpha2 -Dbuild.snapshot=false
- name: Checkout Data-Prepper
uses: actions/checkout@v2
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run OpenSearch docker
run: |
export version=1.0.0-beta1
docker pull opensearchstaging/opensearch:$version
docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -d opensearchstaging/opensearch:$version
sleep 90
- name: Run service-map end-to-end tests with Gradle
run: ./gradlew :data-prepper-core:serviceMapEndToEndTest