Separated out tests in a different GHA workflow #4
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: Test Plugin | |
on: | |
push: | |
branches-ignore: | |
- 'whitesource-remediate/**' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-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 | |
- 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 |