mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
Add Qodana configuration
This commit is contained in:
parent
0a529015bc
commit
300fbfb6b0
2 changed files with 21 additions and 0 deletions
17
.github/workflows/maven-build.yml
vendored
17
.github/workflows/maven-build.yml
vendored
|
@ -27,3 +27,20 @@ jobs:
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Build with Maven Wrapper
|
- name: Build with Maven Wrapper
|
||||||
run: ./mvnw -B package
|
run: ./mvnw -B package
|
||||||
|
|
||||||
|
qodana:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
checks: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
|
||||||
|
fetch-depth: 0 # a full history is required for pull request analysis
|
||||||
|
- name: 'Qodana Scan'
|
||||||
|
uses: JetBrains/qodana-action@v2023.2
|
||||||
|
env:
|
||||||
|
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below
|
||||||
|
|
4
qodana.yml
Normal file
4
qodana.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
version: 1.0
|
||||||
|
linter: jetbrains/qodana-jvm:latest
|
||||||
|
profile:
|
||||||
|
name: qodana.recommended
|
Loading…
Reference in a new issue