From 6af60bbe9e7d33cf5dc40dde8f39416ce3cdf516 Mon Sep 17 00:00:00 2001 From: Stephan Schnabel Date: Tue, 1 Nov 2022 08:40:07 +0100 Subject: [PATCH] Move checkstyle linter to its own job (#87) --- .github/workflows/ci.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b40100f..77caccb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,6 +25,18 @@ jobs: with: args: /github/workspace + checkstyle: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + cache: maven + - run: mvn -B -ntp dependency:go-offline + - run: mvn -B -ntp checkstyle:check + codeql: runs-on: ubuntu-latest permissions: @@ -52,7 +64,7 @@ jobs: server-username: SERVER_USERNAME server-password: SERVER_PASSWORD - run: mvn -B -ntp dependency:go-offline - - run: mvn -B -ntp verify + - run: mvn -B -ntp verify -Dcheckstyle.skip if: ${{ github.ref != 'refs/heads/main' }} - run: mvn -B -ntp deploy if: ${{ github.ref == 'refs/heads/main' }}