Skip to content

Commit

Permalink
Repo check on all runs, reduce JDK17 runs to ubuntu only
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Oct 16, 2023
1 parent fa4939e commit 3e4211a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ on:

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
Expand All @@ -23,12 +25,15 @@ jobs:
- name: Javadoc Check
run: ./gradlew javadoc
build:
if: github.repository == 'opensearch-project/opensearch-ai-flow-framework'
needs: [spotless, javadoc]
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [11, 17, 20]
java: [11, 20]
include:
- os: ubuntu-latest
java: 17
codecov: yes
name: Test JDK${{ matrix.java }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -42,17 +47,19 @@ jobs:
run: |
./gradlew check -x integTest -x yamlRestTest
- name: Upload Coverage Report
if: matrix.os == 'ubuntu-latest' && ${{ matrix.java }} == 17
if: ${{ matrix.codecov }}
uses: codecov/codecov-action@v3
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml
integTest:
if: github.repository == 'opensearch-project/opensearch-ai-flow-framework'
needs: [spotless, javadoc]
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [11, 17, 20]
java: [11, 20]
include:
- os: ubuntu-latest
java: 17
name: Integ Test JDK${{ matrix.java }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand Down

0 comments on commit 3e4211a

Please sign in to comment.