Skip to content

Commit

Permalink
GitHub Actions: Added Qodana action
Browse files Browse the repository at this point in the history
  • Loading branch information
sadv1r authored Sep 25, 2023
1 parent adaa8d9 commit 9a817d7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 ]
Expand Down Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions qodana.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9a817d7

Please sign in to comment.