Add Qodana configuration

This commit is contained in:
Saimir Gasa 2023-07-21 17:01:21 +02:00
parent ab9135ad9b
commit 21d7173ec3
2 changed files with 41 additions and 0 deletions

37
.github/workflows/maven-build.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Java CI with Maven
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{matrix.java}}
uses: actions/setup-java@v3
with:
java-version: ${{matrix.java}}
distribution: 'adopt'
cache: maven
- name: Build with Maven Wrapper
run: ./mvnw -B package
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
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.2
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below

4
qodana.yml Normal file
View file

@ -0,0 +1,4 @@
version: 1.0
linter: jetbrains/qodana-jvm:latest
profile:
name: qodana.recommended