-
Notifications
You must be signed in to change notification settings - Fork 305
47 lines (37 loc) · 1.07 KB
/
sonar.yml
File metadata and controls
47 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: SonarCloud
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
analyze:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Install SonarScanner
run: |
dotnet tool install --global dotnet-sonarscanner
- name: Begin Sonar Analysis
run: |
dotnet sonarscanner begin \
/k:"neozhu_CleanArchitectureWithBlazorServer" \
/o:"neozhu" \
/d:sonar.login="${{ secrets.SONAR_TOKEN }}" \
/d:sonar.host.url="https://sonarcloud.io"
- name: Restore
run: dotnet restore CleanArchitecture.Blazor.slnx
- name: Build
run: dotnet build CleanArchitecture.Blazor.slnx --configuration Debug --no-restore
- name: End Sonar Analysis
run: |
dotnet sonarscanner end \
/d:sonar.login="${{ secrets.SONAR_TOKEN }}"