Skip to content

Separated out tests in a different GHA workflow #12

Separated out tests in a different GHA workflow

Separated out tests in a different GHA workflow #12

Workflow file for this run

name: Test Plugin
on:
push:
branches-ignore:
- 'whitesource-remediate/**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
strategy:
matrix:
test:
- test jacocoTestReport
- integTest
- yamlRestTest
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: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Test
run: ./gradlew ${{ matrix.test }}
- name: Upload Coverage Report
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml