diff --git a/.github/workflows/release-java-bindings.yml b/.github/workflows/release-java-bindings.yml index 5ce67ae..7a65cb6 100644 --- a/.github/workflows/release-java-bindings.yml +++ b/.github/workflows/release-java-bindings.yml @@ -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 }} @@ -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