Skip to content

[Backport 2.11-with-features] Use a common constant to specify the version for log type mappings #708 #1577

[Backport 2.11-with-features] Use a common constant to specify the version for log type mappings #708

[Backport 2.11-with-features] Use a common constant to specify the version for log type mappings #708 #1577

name: Multi-node Test Workflow
# This workflow is triggered on pull requests and pushes to main or an OpenSearch release branch
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
jobs:
build:
strategy:
matrix:
java: [ 11, 17 ]
# Job name
name: Build and test Security Analytics
# This job runs on Linux
runs-on: ubuntu-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
- name: Run integration tests with multi node config
run: ./gradlew integTest -PnumNodes=3
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: logs
path: build/testclusters/integTest-*/logs/*