Replace all CompletableFutures with PlainActionFutures #1285
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches-ignore: | |
- 'whitesource-remediate/**' | |
- 'backport/**' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
spotless: | |
if: github.repository == 'opensearch-project/flow-framework' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Spotless requires JDK 17+ | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Spotless Check | |
run: ./gradlew spotlessCheck | |
javadoc: | |
if: github.repository == 'opensearch-project/flow-framework' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Javadoc CheckStyle | |
run: ./gradlew checkstyleMain | |
- name: Javadoc Check | |
run: ./gradlew javadoc | |
build: | |
needs: [spotless, javadoc] | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
# Don't use 21.0.2 https://github.com/opensearch-project/flow-framework/issues/426 | |
java: [11, 21.0.1] | |
include: | |
- os: ubuntu-latest | |
java: 17 | |
codecov: yes | |
name: Test JDK${{ matrix.java }}, ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Build and Run Tests | |
run: | | |
./gradlew check -x integTest -x yamlRestTest -x spotlessJava | |
- name: Upload Coverage Report | |
if: ${{ matrix.codecov }} | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./build/reports/jacoco/test/jacocoTestReport.xml | |
integTest: | |
needs: [spotless, javadoc] | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
# Don't use 21.0.2 https://github.com/opensearch-project/flow-framework/issues/426 | |
java: [11, 21.0.1] | |
include: | |
- os: ubuntu-latest | |
java: 17 | |
name: Integ Test JDK${{ matrix.java }}, ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Build and Run Tests | |
run: | | |
./gradlew integTest yamlRestTest | |
- name: Multi Nodes Integration Testing | |
if: matrix.java == '21.0.1' | |
run: | | |
./gradlew integTest -PnumNodes=3 |