Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require JDK version for java spotless check #1129

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading