diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index 52824e1..90df89f 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -20,6 +20,13 @@ jobs: 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: Build solution + run: dotnet build + + - name: Run tests with code coverage + run: dotnet test /p:CollectCoverage=true /p:CoverletOutput=../../.qodana/code-coverage/ /p:CoverletOutputFormat=lcov + - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2024.1 env: diff --git a/.gitignore b/.gitignore index 46dc4bf..5da3e26 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ *.user *.userosscache *.sln.docstates +.qodana .idea target diff --git a/qodana.yaml b/qodana.yaml index 25055d2..9a71859 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -1,8 +1,12 @@ version: "1.0" profile: - name: qodana.starter + name: qodana.recommended -bootstrap: dotnet build +dotnet: + solution: SoulSplitter.sln + +include: + - name: NetCoverageInspection exclude: - name: exclude