File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 47
47
run : |
48
48
New-Item -Path .\.sonar\scanner -ItemType Directory
49
49
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
50
+ - name : Install minver
51
+ run : dotnet tool install --global minver-cli
50
52
- name : Restore Packages
51
53
run : dotnet restore
52
54
- name : Build and analyze
55
57
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
56
58
shell : powershell
57
59
run : |
58
- .\.sonar\scanner\dotnet-sonarscanner begin /k:"mysql-net_MySqlConnector" /o:"mysql-net" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
60
+ $sonarProjectVersion = minver
61
+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"mysql-net_MySqlConnector" /o:"mysql-net" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.projectVersion="$sonarProjectVersion"
59
62
dotnet build --configuration Release --no-restore
60
63
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
You can’t perform that action at this time.
0 commit comments