From 32482abc9d0d64a81a724e0dfe61401b69656ab0 Mon Sep 17 00:00:00 2001 From: Stephan Schnabel Date: Wed, 26 Oct 2022 13:35:04 +0200 Subject: [PATCH] Move checkstyle linter to its own job --- .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' }} -- 2.47.2