Skip to content

Commit

Permalink
separate step for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Oct 25, 2024
1 parent a5471d2 commit 4525697
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release-java-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@ concurrency:
cancel-in-progress: true

jobs:
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Check formatting
run: ./gradlew spotlessCheck
working-directory: bindings/java/java_code

build:
name: Build - ${{ matrix.target }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -102,9 +118,6 @@ jobs:
with:
distribution: 'temurin'
java-version: '11'
- name: Formatting
run: ./gradlew spotlessCheck
working-directory: bindings/java/java_code
- name: Build with Gradle (no tests)
run: ./gradlew build -x test
working-directory: bindings/java/java_code
Expand Down

0 comments on commit 4525697

Please sign in to comment.