File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 Tfm : net8.0
2121 DotnetVersion : 8.0.x
2222 SonarCloudSecretKey : ${{ secrets.SONARCLOUDKEY }}
23+ BranchName : ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
24+ BranchParam : ${{ github.event_name == 'pull_request' && 'sonar.pullrequest.branch' || 'sonar.branch.name' }}
25+ PullRequestParam : ${{ github.event_name == 'pull_request' && format('/d:sonar.pullrequest.key={0}', github.event.number) || '' }}
2326
2427 steps :
2528 - name : Checkout
4649 run : dotnet tool install --global dotnet-sonarscanner
4750 - name : Setup Coverlet console
4851 run : dotnet tool install --global coverlet.console
49- - name : Setup SonarScanner for pull request processing
50- if : ${{ github.event_name == 'pull_request' }}
51- env :
52- BranchName : ${{ github.base_ref }}
53- BranchParam : sonar.pullrequest.branch
54- PullRequestParam : /d:sonar.pullrequest.key=${{ github.event.number }}
55- - name : Setup SonarScanner for normal branch processing
56- if : ${{ github.event_name != 'pull_request' }}
57- env :
58- BranchName : ${{ github.ref_name }}
59- BranchParam : sonar.branch.name
60- PullRequestParam :
6152 - name : Setup Selenium Manager config
6253 run : |
6354 mkdir ~/.cache/selenium
You can’t perform that action at this time.
0 commit comments