Skip to content

Commit

Permalink
Use Java 21 for spotless and do not force to run on ubuntu
Browse files Browse the repository at this point in the history
Signed-off-by: rithin-pullela-aws <[email protected]>
  • Loading branch information
rithin-pullela-aws committed Jan 9, 2025
1 parent 922170b commit db9a3f7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/CI-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ jobs:
product: opensearch

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

Expand Down

0 comments on commit db9a3f7

Please sign in to comment.