Skip to content

Commit

Permalink
Separated out tests in a different GHA workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <[email protected]>
  • Loading branch information
owaiskazi19 committed Oct 11, 2023
1 parent 446c32d commit 632b450
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
8 changes: 4 additions & 4 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: Build Plugin

on:
push:
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
- windows-latest
java:
- 17
name: Build and Test Plugin Template
name: Build
if: github.repository == 'opensearch-project/opensearch-ai-flow-framework'
runs-on: ${{ matrix.os }}

Expand All @@ -45,9 +45,9 @@ jobs:
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Build and Run Tests
- name: Build
run: |
./gradlew check
./gradlew check -x test -x integTest -x yamlRestTest
- name: Upload Coverage Report
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test Plugin

on:
push:
branches-ignore:
- 'whitesource-remediate/**'
pull_request:
types: [opened, synchronize, reopened]

jobs:
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
java:
- 17
test:
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

0 comments on commit 632b450

Please sign in to comment.