From 4f823ee990b6e76d3036e55f9e178037035a124c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bertrand?= Date: Sat, 4 May 2024 16:58:51 +0200 Subject: [PATCH 1/2] fix readme and add it to nuget package --- README.md | 18 +++++------------- src/NVika/NVika.csproj | 12 ++++-------- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 57978fe..fa03ebb 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,7 @@ Also means 'bug' in Finnish. [![Licence Apache 2](https://img.shields.io/badge/licence-Apache%202-blue.svg)](https://github.com/laedit/vika/blob/master/LICENSE) ![Build](https://github.com/laedit/vika/workflows/Build/badge.svg) -[![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=laedit_vika&metric=alert_status)](https://sonarcloud.io/dashboard?id=laedit_vika) -[![SonarCloud Coverage](https://sonarcloud.io/api/project_badges/measure?project=laedit_vika&metric=coverage)](https://sonarcloud.io/component_measures/metric/coverage/list?id=laedit_vika) -[![SonarCloud Bugs](https://sonarcloud.io/api/project_badges/measure?project=laedit_vika&metric=bugs)](https://sonarcloud.io/component_measures/metric/reliability_rating/list?id=laedit_vika) -[![SonarCloud Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=laedit_vika&metric=vulnerabilities)](https://sonarcloud.io/component_measures/metric/security_rating/list?id=laedit_vika) +[![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=laedit_vika&metric=alert_status)](https://sonarcloud.io/project/overview?id=laedit_vika) ## What it is Right now it's just a tiny tool which parse analysis reports and send messages to the build server, or in console if it's not executed on a build server. @@ -56,9 +53,11 @@ It is possible to process several reports at the same time: `NVika parsereport r ## Build servers ### Supported - - [AppVeyor](http://appveyor.com) + - Local build: output in console + - [AppVeyor](https://appveyor.com) ![AppVeyor example](resources/AppVeyor.png) - + - [GitHub actions](https://github.com) + ### To come - [TeamCity](https://github.com/laedit/vika/issues/4)? - [ContinuaCI](https://github.com/laedit/vika/issues/3)? @@ -67,13 +66,6 @@ It is possible to process several reports at the same time: `NVika parsereport r I am really wondering if there is any value to supporting these three, because there doesn't support to add build message like AppVeyor but only log message. And they support custom HTML report, so an xslt transformation is enough. -## What it will be -A website will be added for displaying a nice and shiny aggregated report from all source to a dedicated page for each GitHub project. - -There also will be a solution to upload a temporary report stored for a week. - -And the client may push reports through the website public API. - ## Contributing All contributions are welcome, please read our [contributing guide](CONTRIBUTING.md). diff --git a/src/NVika/NVika.csproj b/src/NVika/NVika.csproj index eace7a8..875e63a 100644 --- a/src/NVika/NVika.csproj +++ b/src/NVika/NVika.csproj @@ -16,6 +16,7 @@ git report parsing build server inspectcode FxCop SARIF Roslyn Gendarme https://github.com/laedit/vika/releases + README.md AllEnabledByDefault true @@ -43,14 +44,9 @@ - - True - - - - True - - + + + From de2e21cd3ae0120d7cbb1bb0446f6e8247fb15a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bertrand?= Date: Sat, 4 May 2024 16:59:01 +0200 Subject: [PATCH 2/2] fix sonar warning --- .github/workflows/sonar-analysis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonar-analysis.yml b/.github/workflows/sonar-analysis.yml index 551f8ed..93bb44f 100644 --- a/.github/workflows/sonar-analysis.yml +++ b/.github/workflows/sonar-analysis.yml @@ -76,6 +76,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - ./.sonar/scanner/dotnet-sonarscanner begin /k:"laedit_vika" /o:"laedit-github" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=src/NVika.Tests/coverage.opencover.xml /d:sonar.coverage.exclusions="src/NVika.Tests/*" + ./.sonar/scanner/dotnet-sonarscanner begin /k:"laedit_vika" /o:"laedit-github" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=src/NVika.Tests/coverage.opencover.xml /d:sonar.coverage.exclusions="src/NVika.Tests/*" dotnet build src --configuration Release /p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} - ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}" + ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"