Update versions and build stuff
This commit is contained in:
parent
2da5046552
commit
e2c6a7daa1
5 changed files with 56 additions and 33 deletions
32
.github/workflows/ci.yaml
vendored
32
.github/workflows/ci.yaml
vendored
|
@ -25,19 +25,29 @@ jobs:
|
|||
with:
|
||||
args: /github/workspace
|
||||
|
||||
codeql:
|
||||
javadoc:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
actions: read
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: github/codeql-action/init@v2
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
languages: java
|
||||
- uses: github/codeql-action/autobuild@v2
|
||||
- uses: github/codeql-action/analyze@v2
|
||||
distribution: temurin
|
||||
java-version: 11
|
||||
cache: maven
|
||||
- run: mvn -B -ntp dependency:go-offline
|
||||
- run: mvn -B -ntp javadoc:javadoc-no-fork -Dmaven.javadoc.failOnWarnings=true -Ddoclint=all
|
||||
|
||||
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
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -52,9 +62,9 @@ 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
|
||||
- run: mvn -B -ntp deploy -Dcheckstyle.skip
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
env:
|
||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue