diff --git a/.github/workflows/groovy-check.yml b/.github/workflows/groovy-check.yml index ab34321..f74b44a 100644 --- a/.github/workflows/groovy-check.yml +++ b/.github/workflows/groovy-check.yml @@ -11,5 +11,14 @@ jobs: - name: Set up Groovy uses: actions/setup-java@v3 with: - java-version: 11 - distribution: openjdk + java-version: '11' + distribution: adoptopenjdk + + - name: Check Groovy code + run: | + gradle groovy + + - name: Fail if there are any errors + if: ${{ steps.groovy-check.outputs.exitCode != 0 }} + run: echo "Groovy check failed!" + exit: 1