From 300fbfb6b0ac1f99f1069ab3fd14d6fedb6fa218 Mon Sep 17 00:00:00 2001 From: Saimir Gasa Date: Fri, 21 Jul 2023 17:22:54 +0200 Subject: [PATCH] Add Qodana configuration --- .github/workflows/maven-build.yml | 17 +++++++++++++++++ qodana.yml | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 qodana.yml 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