Skip to content

Commit

Permalink
[Update] CodeQuality GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
samatstariongroup committed Oct 19, 2024
1 parent ae35954 commit e4e3259
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/CodeQuality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ jobs:
- name: add DevExpress nuget feed
run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_NUGET_KEY }} --store-password-in-clear-text

- name: Install dependencies
run: dotnet restore CDP4-SDK.sln

- name: Build
run: dotnet build CDP4-SDK.sln --no-restore /p:ContinuousIntegrationBuild=true

- name: Sonarqube Begin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
Expand All @@ -44,6 +38,12 @@ jobs:
dotnet tool install --global dotnet-sonarscanner
dotnet sonarscanner begin /k:"STARIONGROUP_CDP4-SDK-Community-Edition" /o:"stariongroup" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./CoverageResults/coverage.opencover.xml"
- name: Install dependencies
run: dotnet restore CDP4-SDK.sln

- name: Build
run: dotnet build CDP4-SDK.sln --no-restore /p:ContinuousIntegrationBuild=true

- name: Run Tests and Compute Coverage
run: dotnet test CDP4-SDK.sln --no-restore --no-build --verbosity detailed --filter="(TestCategory!~WebServicesDependent) & (TestCategory!~CICDExclusion)" /p:CollectCoverage=true /p:CoverletOutput="../CoverageResults/" /p:MergeWith="../CoverageResults/coverage.json" /p:CoverletOutputFormat=\"cobertura,opencover,json\"

Expand Down

0 comments on commit e4e3259

Please sign in to comment.