Skip to content

Commit

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

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Fix syntax

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Fixed action versions

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 authored Oct 17, 2022
1 parent 6c312e4 commit ad33614
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 ad33614

Please sign in to comment.