Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create code_quality.yml #2048

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
jobs:
qodana:
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
- id: get-java-home-17
run: echo "JAVA_HOME_17_X64=$JAVA_HOME_17_X64" >> $GITHUB_OUTPUT
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
args: -v,${{ steps.get-java-home-17.outputs.JAVA_HOME_17_X64 }}:/root/.jdks/jdk17, --script, "/opt/idea/bin/idea.sh installPlugins com.netflix.spring.intellij.spring-boot-netflix-intellij-plugin https://artifacts.netflix.net/devtools/sbn-intellij/updatePlugins.xml"
push-fixes: pull-request
upload-result: true
env:
QODANA_LICENSE: ${{ secrets.QODANA_LICENSE }} # read the steps about it below
2 changes: 2 additions & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0"
linter: jetbrains/qodana-jvm:2024.2
Loading