diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 98e32aa..4bce52d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -107,6 +107,41 @@ jobs: - name: Test generated vaults with official CLI tool run: ./gradlew integrationTest + inspectCode: + name: Inspect code + needs: [ build ] + runs-on: ubuntu-latest + permissions: + contents: write + checks: write + pull-requests: write + steps: + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false + + - name: Fetch Sources + uses: actions/checkout@v3 + + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: zulu + java-version: 11 + + - name: Qodana - Code Inspection + uses: JetBrains/qodana-action@v2023.2.1 + with: + cache-default-branch-only: true + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} + + - uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json + verify: name: Verify plugin needs: [ build ] @@ -153,7 +188,7 @@ jobs: releaseDraft: name: Release Draft if: github.event_name != 'pull_request' - needs: [ build, test, verify ] + needs: [ build, test, inspectCode, verify ] runs-on: ubuntu-latest permissions: contents: write diff --git a/qodana.yml b/qodana.yml new file mode 100644 index 0000000..d5d5205 --- /dev/null +++ b/qodana.yml @@ -0,0 +1,12 @@ +# Qodana configuration: +# https://www.jetbrains.com/help/qodana/qodana-yaml.html + +version: 1.0 +linter: jetbrains/qodana-jvm-community:latest +projectJDK: 11 +profile: + name: qodana.recommended +exclude: + - name: All + paths: + - .qodana \ No newline at end of file