Skip to content

Commit

Permalink
[Backport 2.x] Run integ tests in parallel with build (#98)
Browse files Browse the repository at this point in the history
* Run integ tests in parallel with build (#94)

* Run integ tests in parallel with build

Signed-off-by: Daniel Widdis <[email protected]>

* Repo check on all runs, reduce JDK17 runs to ubuntu only

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
Co-authored-by: Joshua Palis <[email protected]>
(cherry picked from commit c84321f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Remove JDK20 from backport CI

Signed-off-by: Daniel Widdis <[email protected]>

* Remove the other JDK20 

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Joshua Palis <[email protected]>
Co-authored-by: Daniel Widdis <[email protected]>
  • Loading branch information
4 people committed Oct 17, 2023
1 parent df05482 commit 19c8935
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test Plugin
name: CI

on:
push:
Expand Down Expand Up @@ -28,16 +28,14 @@ jobs:
needs: [spotless, javadoc]
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
java:
- 17
name: Build and Test Plugin Template
if: github.repository == 'opensearch-project/opensearch-ai-flow-framework'
os: [ubuntu-latest, macos-latest, windows-latest]
java: [11]
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 }}
Expand All @@ -47,9 +45,30 @@ jobs:
distribution: temurin
- name: Build and Run Tests
run: |
./gradlew check
./gradlew check -x integTest -x yamlRestTest
- name: Upload Coverage Report
if: matrix.os == 'ubuntu-latest'
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]
java: [11]
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@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Build and Run Tests
run: |
./gradlew integTest yamlRestTest

0 comments on commit 19c8935

Please sign in to comment.