From 72c8b988cd9fc65828f58cf91da352f283e3295f Mon Sep 17 00:00:00 2001 From: Owais Kazi Date: Thu, 12 Oct 2023 15:06:24 -0700 Subject: [PATCH] Handled code coverage for the PR Signed-off-by: Owais Kazi --- .github/workflows/CI.yml | 5 ---- .github/workflows/test.yml | 54 +++++++++++++++++++------------------- 2 files changed, 27 insertions(+), 32 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 38ce2fa8c..7cbf277c8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -48,8 +48,3 @@ jobs: - name: Build run: | ./gradlew check -x test -x integTest -x yamlRestTest - - name: Upload Coverage Report - if: matrix.os == 'ubuntu-latest' - uses: codecov/codecov-action@v3 - with: - file: ./build/reports/jacoco/test/jacocoTestReport.xml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33f6b4616..b395386ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,32 +8,32 @@ on: types: [opened, synchronize, reopened] jobs: - strategy: - matrix: - os: - - ubuntu-latest - - macOS-latest - - windows-latest - java: - - 17 test: + strategy: + matrix: + os: + - ubuntu-latest + - macOS-latest + - windows-latest + java: + - 17 if: github.repository == 'opensearch-project/opensearch-ai-flow-framework' - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - name: Test - run: ./gradlew test - yamlRestTest: - if: github.repository == 'opensearch-project/opensearch-ai-flow-framework' - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - name: Test - run: ./gradlew yamlRestTest - integTest: - if: github.repository == 'opensearch-project/opensearch-ai-flow-framework' - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - name: Test - run: ./gradlew integTest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Test + run: ./gradlew test + + - name: YamlRestTest + run: + ./gradlew yamlRestTest + + - name: integTest + run: + ./gradlew integTest + + - name: Upload Coverage Report + if: matrix.os == 'ubuntu-latest' + uses: codecov/codecov-action@v3 + with: + file: ./build/reports/jacoco/test/jacocoTestReport.xml