warrenbrasil/Warren - Run Tests and SonarQube Analysis
Run .NET Tests and sends the result to SonarQube
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| sonar-token | SonarQube token | yes | — |
| sonar-host-url | SonarQube URL | yes | — |
| sonar-project-key | SonarQube project key | yes | — |
| sonar-organization | SonarQube organization name | yes | — |
| solution | Solution file name without the .sln extension (do not use with project input parameter) | no | "" |
| project | The path of test project to be tested (do not use with solution input parameter) | no | "" |
| code-exclusions | The matching path for code that should be excluded from coverage (absolute, relative and pattern paths are acceptable) | no | "" |
| pull-request | Boolean to change behavior of dotnet-sonarscanner for pull requests | yes | — |
| branch-name | Branch name to be displayed on SonarQube (required when pull-request is false) | no | — |
| pull-request-number | The number of the pull request (required when pull-request is true) | no | — |
| pull-request-base | The target branch name from the pull request (required when pull-request is true) | no | — |
| pull-request-head | The target source name from the pull request (required when pull-request is true) | no | — |
| quality-gate-wait | Poll to SonarQube instance until the Quality Gate status is available | no | true |
| verbosity | Verbosity level for dotnet test command | no | m |
| enable-dotnet-restore | Runs dotnet restore before dotnet test | no | true |
| dotnet-restore-flags | Add flags to dotnet restore command | no | "" |
| enable-dotnet-build | Runs dotnet build with no restore before dotnet test | no | true |
| dotnet-build-flags | Add flags to dotnet build command | no | --no-restore |
| dotnet-test-flags | Add flags to dotnet test command | no | --no-build --no-restore |
Outputs
no outputs