feat: new checks

This commit is contained in:
Aleksandr Chikovani 2023-08-28 22:50:41 -04:00
parent a0170357ae
commit 476dbc2e95
2 changed files with 35 additions and 4 deletions

14
.github/pr-title-checker-config.json vendored Normal file
View 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": ""
}
}

View file

@ -12,16 +12,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: thehanimo/pr-title-checker@v1.4.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up JDK ${{matrix.java}} - name: Set up JDK ${{matrix.java}}
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
- name: PR title check
run: |
echo "NIY"
echo "${{ github.event.pull_request.title }}"
- name: Codestyle - name: Codestyle
continue-on-error: true #TODO: make false continue-on-error: true #TODO: make false
run: ./gradlew checkstyleMain run: ./gradlew checkstyleMain
@ -69,3 +68,21 @@ jobs:
with: with:
allow-dynamic-versions: 'true' allow-dynamic-versions: 'true'
fail-on: 'violations' 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'