-
Notifications
You must be signed in to change notification settings - Fork 15
83 lines (72 loc) · 2.56 KB
/
CI.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Build and Test logstash-input-opensearch plugin
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
Unit-test:
strategy:
matrix:
logstash: [ "7.16.3" ]
name: Unit Test logstash-input-opensearch
runs-on: ubuntu-latest
env:
LOGSTASH_VERSION: ${{ matrix.logstash }}
steps:
- name: Checkout plugin
uses: actions/checkout@v1
- name: Build and pull docker files for unit tests with logstash ${{ matrix.logstash }}
run: |
./.ci/unit-test/docker-setup.sh
- name: Run unit tests
run: |
./.ci/unit-test/docker-run.sh
Integration-Test-OpenSearch:
strategy:
matrix:
logstash: [ "7.16.3" ]
opensearch: [ "1.2.1" ]
integration: [ true ]
secure: [ true, false ]
name: Integration Test for logstash-input-opensearch against OpenSearch
runs-on: ubuntu-latest
env:
OPENDISTRO_VERSION: ${{ matrix.opensearch }}
LOGSTASH_VERSION: ${{ matrix.logstash }}
INTEGRATION: ${{ matrix.integration }}
SECURE_INTEGRATION: ${{ matrix.secure }}
steps:
- name: Checkout plugin
uses: actions/checkout@v1
- name: Build and pull docker files for OpenSearch-${{ matrix.opensearch }} with security-${{ matrix.secure }} for logstash-${{ matrix.logstash }}
run: |
./.ci/opensearch/docker-setup.sh
- name: Run integration tests against OpenSearch-${{ matrix.opensearch }} with security-${{ matrix.secure }} for logstash-${{ matrix.logstash }}
run: |
./.ci/opensearch/docker-run.sh
Integration-Test-OpenDistro:
strategy:
matrix:
logstash: [ "7.16.3" ]
opendistro: [ "1.13.3" ]
integration: [ true ]
secure: [ true, false ]
name: Integration Test for logstash-input-opensearch against OpenDistro
runs-on: ubuntu-latest
env:
OPENDISTRO_VERSION: ${{ matrix.opendistro }}
LOGSTASH_VERSION: ${{ matrix.logstash }}
INTEGRATION: ${{ matrix.integration }}
SECURE_INTEGRATION: ${{ matrix.secure }}
steps:
- name: Checkout plugin
uses: actions/checkout@v1
- name: Build and pull docker files for OpenDistro-${{ matrix.opendistro }} with security-${{ matrix.secure }} for logstash-${{ matrix.logstash }}
run: |
./.ci/opendistro/docker-setup.sh
- name: Run integration tests against OpenDistro-${{ matrix.opendistro }} with security-${{ matrix.secure }} for logstash-${{ matrix.logstash }}
run: |
./.ci/opendistro/docker-run.sh