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

Attempt to add test coverage to qodana #75

Merged
merged 4 commits into from
Dec 31, 2024
Merged
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
7 changes: 7 additions & 0 deletions .github/workflows/qodana.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Qodana

Check warning on line 1 in .github/workflows/qodana.yml

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Validation by JSON Schema

Schema validation: Missing required property 'version' = 1.0
on:
#schedule:
# - cron: "30 1 * * *"
Expand All @@ -20,6 +20,13 @@
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/[email protected]
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*.user
*.userosscache
*.sln.docstates
.qodana

.idea
target
Expand Down
8 changes: 6 additions & 2 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading