Improve repository.
- add kokuwa checkstyle - add dependabot - add dependency documentation - add code owners - add codeql - add license badge
This commit is contained in:
parent
f92d80d1a9
commit
0f6596becc
10 changed files with 196 additions and 47 deletions
36
.github/workflows/snapshot.yaml
vendored
36
.github/workflows/snapshot.yaml
vendored
|
@ -2,32 +2,16 @@ name: Snapshot
|
|||
|
||||
"on":
|
||||
workflow_dispatch: {}
|
||||
push: {}
|
||||
push:
|
||||
branches: [main]
|
||||
paths-ignore: ['**.md']
|
||||
|
||||
jobs:
|
||||
|
||||
lint-yaml:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ibiqlik/action-yamllint@v3
|
||||
with:
|
||||
format: colored
|
||||
strict: true
|
||||
|
||||
lint-markdown:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker://avtodev/markdown-lint:v1
|
||||
with:
|
||||
args: /github/workspace
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-java@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 11
|
||||
|
@ -35,19 +19,17 @@ jobs:
|
|||
server-id: sonatype-nexus
|
||||
server-username: SERVER_USERNAME
|
||||
server-password: SERVER_PASSWORD
|
||||
- run: mvn -B dependency:go-offline -q
|
||||
- run: mvn -B verify
|
||||
if: github.ref != 'refs/heads/main'
|
||||
- run: mvn -B dependency:go-offline
|
||||
- run: mvn -B deploy
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
||||
- uses: dorny/test-reporter@v1
|
||||
- uses: dorny/test-reporter@v1.5.0
|
||||
if: failure()
|
||||
with:
|
||||
name: surefire
|
||||
path: '*/target/surefire-reports/*.xml'
|
||||
path: '**/target/surefire-reports/*.xml'
|
||||
reporter: java-junit
|
||||
list-suites: failed
|
||||
list-tests: failed
|
||||
fail-on-error: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue