Skip to content

Commit

Permalink
Run spotless check before gradle check (opensearch-project#198)
Browse files Browse the repository at this point in the history
* Added spotless check before gradle check

Signed-off-by: Owais Kazi <[email protected]>

* Fix syntax

Signed-off-by: Owais Kazi <[email protected]>

* Fixed action versions

Signed-off-by: Owais Kazi <[email protected]>

Signed-off-by: Owais Kazi <[email protected]>
  • Loading branch information
owaiskazi19 authored and kokibas committed Mar 17, 2023
1 parent 8d7d9d9 commit 39fab55
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ name: Gradle Build
on: [push, pull_request]

jobs:
spotless:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Spotless Check
run: ./gradlew spotlessCheck
check:
needs: spotless
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -12,7 +21,7 @@ jobs:
- name: Publish to Maven Local
run: |
./gradlew publishToMavenLocal
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
Expand Down

0 comments on commit 39fab55

Please sign in to comment.