diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 5de223fc6..947eef6d9 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -27,3 +27,20 @@ jobs: cache: maven - name: Build with Maven Wrapper 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 diff --git a/qodana.yml b/qodana.yml new file mode 100644 index 000000000..f8db9e8d9 --- /dev/null +++ b/qodana.yml @@ -0,0 +1,4 @@ +version: 1.0 +linter: jetbrains/qodana-jvm:latest +profile: + name: qodana.recommended