forked from opensearch-project/flow-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.45 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and Test 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:
- 17
name: Build and Test Plugin Template
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 and Run Tests
run: |
./gradlew check
- name: Upload Coverage Report
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml