-
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.
Update and rename build.yml to SonarCloud.yml
- Loading branch information
1 parent
da25e88
commit c328add
Showing
2 changed files
with
29 additions
and
48 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: SonarCloud Analysis | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
sonarcloud: | ||
name: SonarCloud Scan | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '7' | ||
|
||
- name: Install SonarScanner | ||
run: dotnet tool install --global dotnet-sonarscanner | ||
|
||
- name: SonarCloud Scan | ||
run: | | ||
dotnet sonarscanner begin /k:""${{ secrets.SONAR_PROJECT }}"" /o:""${{ secrets.SONAR_ORGANIZATION }}"" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" | ||
dotnet build | ||
dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}" |
This file was deleted.
Oops, something went wrong.