Skip to content

Separated out tests in a different GHA workflow #347

Separated out tests in a different GHA workflow

Separated out tests in a different GHA workflow #347

Workflow file for this run

name: Build Plugin
on:
push:
branches-ignore:
- 'whitesource-remediate/**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
spotless:
if: github.repository == 'opensearch-project/opensearch-ai-flow-framework'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Spotless Check
run: ./gradlew spotlessCheck
javadoc:
if: github.repository == 'opensearch-project/opensearch-ai-flow-framework'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Javadoc CheckStyle
run: ./gradlew checkstyleMain
- name: Javadoc Check
run: ./gradlew javadoc
build:
needs: [spotless, javadoc]
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
java:
- 11
- 17
- 20
name: Build
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: Build
run: |
./gradlew build -x test -x integTest -x yamlRestTest