Move checkstyle linter to its own job (#87)
This commit is contained in:
parent
b65a1c5831
commit
6af60bbe9e
1 changed files with 13 additions and 1 deletions
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
|
@ -25,6 +25,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
args: /github/workspace
|
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:
|
codeql:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -52,7 +64,7 @@ jobs:
|
||||||
server-username: SERVER_USERNAME
|
server-username: SERVER_USERNAME
|
||||||
server-password: SERVER_PASSWORD
|
server-password: SERVER_PASSWORD
|
||||||
- run: mvn -B -ntp dependency:go-offline
|
- 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' }}
|
if: ${{ github.ref != 'refs/heads/main' }}
|
||||||
- run: mvn -B -ntp deploy
|
- run: mvn -B -ntp deploy
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue