mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 16:25:49 +00:00
feat: new checks
This commit is contained in:
parent
a0170357ae
commit
476dbc2e95
2 changed files with 35 additions and 4 deletions
14
.github/pr-title-checker-config.json
vendored
Normal file
14
.github/pr-title-checker-config.json
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"LABEL": {
|
||||
"name": "title needs formatting",
|
||||
"color": "EEEEEE"
|
||||
},
|
||||
"CHECKS": {
|
||||
"prefixes": ["fix: ", "feat: ", "feature: ", "chore: ", "hotfix: "]
|
||||
},
|
||||
"MESSAGES": {
|
||||
"success": "All OK",
|
||||
"failure": "Missing prefix",
|
||||
"notice": ""
|
||||
}
|
||||
}
|
25
.github/workflows/gradle-build.yml
vendored
25
.github/workflows/gradle-build.yml
vendored
|
@ -12,16 +12,15 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: thehanimo/pr-title-checker@v1.4.0
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK ${{matrix.java}}
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
- name: PR title check
|
||||
run: |
|
||||
echo "NIY"
|
||||
echo "${{ github.event.pull_request.title }}"
|
||||
- name: Codestyle
|
||||
continue-on-error: true #TODO: make false
|
||||
run: ./gradlew checkstyleMain
|
||||
|
@ -69,3 +68,21 @@ jobs:
|
|||
with:
|
||||
allow-dynamic-versions: 'true'
|
||||
fail-on: 'violations'
|
||||
|
||||
|
||||
codeql:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: 'java'
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: '/language:java'
|
||||
|
|
Loading…
Reference in a new issue