-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add sonar coverage * specify a solution for restore. * fix: add report generator * remove codeql and sonacloud yml file.
- Loading branch information
1 parent
9f336a5
commit 9daf97c
Showing
9 changed files
with
18 additions
and
195 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,21 +38,30 @@ jobs: | |
- name: Install .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Restore solution | ||
run: dotnet restore | ||
run: dotnet restore ${{ env.SOLUTION_PATH }} | ||
|
||
- name: Build solution | ||
run: dotnet build --no-restore --configuration Release | ||
|
||
- name: Test solution | ||
run: dotnet test --no-build --configuration Release --filter "FullyQualifiedName!~AcceptanceTests" | ||
run: dotnet build ${{ env.SOLUTION_PATH }} --no-restore --configuration Release | ||
|
||
- name: Test solution with coverage | ||
run: | | ||
dotnet test ${{ env.SOLUTION_PATH }} --no-build --configuration Release --collect:"Code Coverage" --results-directory ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
- name: Analyze with SonarCloud | ||
- name: SonarCloud Scan | ||
uses: sonarsource/[email protected] | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONARCLOUND_TOKEN }} | ||
|
||
with: | ||
args: > | ||
-Dsonar.projectKey=christianrd_FastCleanArchitecture | ||
-Dsonar.organization=christianrd | ||
-Dsonar.cs.opencover.reportPaths=TestResults/coverage.opencover.xml | ||
-Dsonar.Tests=tests/ | ||
- name: Publish website | ||
if: ${{ inputs.build-artifacts == true }} | ||
run: | | ||
|
@@ -67,42 +76,4 @@ jobs: | |
with: | ||
name: website | ||
path: ./src/API/publish/publish.zip | ||
if-no-files-found: error | ||
|
||
- name: Create EF Core migrations bundle - Install tool-manifest | ||
if: ${{ inputs.build-artifacts == true }} | ||
run: | | ||
dotnet new tool-manifest | ||
env: | ||
SkipNSwag: True | ||
|
||
- name: Create EF Core migrations bundle - Install dotnet-ef | ||
if: ${{ inputs.build-artifacts == true }} | ||
run: | | ||
dotnet tool install dotnet-ef --version 8.0.1 | ||
env: | ||
SkipNSwag: True | ||
|
||
|
||
- name: Create EF Core migrations bundle - bundle migrations | ||
if: ${{ inputs.build-artifacts == true }} | ||
run: | | ||
dotnet ef migrations bundle --configuration Release -p ./src/Infrastructure/ -s ./src/API/ -o efbundle.exe | ||
env: | ||
SkipNSwag: True | ||
|
||
|
||
- name: Create EF Core migrations bundle - zip migrations bundle | ||
if: ${{ inputs.build-artifacts == true }} | ||
run: | | ||
zip -r ./efbundle.zip efbundle.exe | ||
env: | ||
SkipNSwag: True | ||
|
||
- name: Upload EF Core migrations bundle artifact (efbundle) | ||
if: ${{ inputs.build-artifacts == true }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: efbundle | ||
path: ./efbundle.zip | ||
if-no-files-found: error |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.