Skip to content

Commit 173303a

Browse files
Update sonar.yml
1 parent a578831 commit 173303a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/sonar.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
java-version: '11'
3333
- name: Test
3434
env:
35-
NETCORE2_TEST_PROJECT: >-
36-
Mastercard.Developer.OAuth1Signer.Tests/NetCore2/Mastercard.Developer.OAuth1Signer.Tests.NetCore2.csproj
35+
NETCORE5_TEST_PROJECT: >-
36+
Mastercard.Developer.OAuth1Signer.Tests/NetCore2/Mastercard.Developer.OAuth1Signer.Tests.Net5.csproj
3737
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
3838
SONAR_TOKEN: '${{ secrets.SONAR_TOKEN }}'
3939
run: >
@@ -48,10 +48,10 @@ jobs:
4848
/o:"mastercard" \
4949
/d:sonar.host.url="https://sonarcloud.io" \
5050
/d:sonar.login="$SONAR_TOKEN" \
51-
/d:sonar.cs.vstest.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/NetCore2/bin/tests.trx" \
52-
/d:sonar.cs.opencover.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/NetCore2/bin/coverage.xml"
51+
/d:sonar.cs.vstest.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/Net5/bin/tests.trx" \
52+
/d:sonar.cs.opencover.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/Net5/bin/coverage.xml"
5353
54-
dotnet test $NETCORE2_TEST_PROJECT -c Release
54+
dotnet test $NETCORE5_TEST_PROJECT -c Release
5555
-l:"trx;LogFileName=tests.trx" -r:"bin/" /p:CollectCoverage=true
5656
/p:CoverletOutputFormat="opencover"
5757
/p:CoverletOutput="bin/coverage.xml"

0 commit comments

Comments
 (0)