Skip to content

Commit

Permalink
Require JDK version for java spotless check (#1129)
Browse files Browse the repository at this point in the history
Signed-off-by: Jackie Han <[email protected]>
  • Loading branch information
jackiehanyang committed Jan 24, 2024
1 parent 708e046 commit 97482c1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/test_build_multi_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,21 @@ jobs:
with:
product: opensearch

spotless:
if: github.repository == 'opensearch-project/anomaly-detection'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Spotless requires JDK 17+
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Spotless Check
run: ./gradlew spotlessCheck

Build-ad-windows:
needs: spotless
strategy:
matrix:
java: [ 11, 17, 21 ]
Expand Down Expand Up @@ -46,7 +60,7 @@ jobs:
flags: plugin

Build-ad-linux:
needs: Get-CI-Image-Tag
needs: [Get-CI-Image-Tag, spotless]
strategy:
matrix:
java: [11, 17, 21]
Expand Down Expand Up @@ -87,6 +101,7 @@ jobs:
flags: plugin

Build-ad-macos:
needs: spotless
strategy:
matrix:
java: [11,17,21]
Expand Down

0 comments on commit 97482c1

Please sign in to comment.