diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d6874dbf45..d7b15a11f34 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,22 @@ jobs: outputs: source_changes: ${{ steps.filter.outputs.source_changes }} - # This workflow contains a single job called "build" + lint-check: + runs-on: ubuntu-latest + needs: changes + if: needs.changes.outputs.source_changes == '' + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java-version }} + distribution: 'temurin' + + - name: Build with Gradle + run: ./gradlew build -PskipITs -PjdkVersion=${{ matrix.java-version }} + + # This workflow contains a single job called "build" build: # The type of runner that the job will run on runs-on: ubuntu-latest