Skip to content

Commit

Permalink
Handled code coverage for the PR
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <[email protected]>
  • Loading branch information
owaiskazi19 committed Oct 12, 2023
1 parent 632b450 commit 72c8b98
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 32 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
54 changes: 27 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 72c8b98

Please sign in to comment.