@@ -22,18 +22,18 @@ jobs:
2222 github.event.pull_request.head.repo.full_name == github.repository ||
2323 github.event_name != 'pull_request_target') }}
2424 run : echo "Unsecure PR, must be labelled with the 'safe' label, then run the workflow again" && exit 1
25- - name : Setup .NET 5
25+ - name : Setup .NET 6
26262727 with :
28- dotnet-version : 5 .0.x
28+ dotnet-version : 6 .0.x
2929 - name : Setup java
3030 uses : actions/setup-java@v1
3131 with :
3232 java-version : ' 11'
3333 - name : Test
3434 env :
35- NETCORE5_TEST_PROJECT : >-
36- Mastercard.Developer.OAuth1Signer.Tests/Net5 /Mastercard.Developer.OAuth1Signer.Tests.Net5 .csproj
35+ NETCORE3_TEST_PROJECT : >-
36+ Mastercard.Developer.OAuth1Signer.Tests/NetCore3 /Mastercard.Developer.OAuth1Signer.Tests.NetCore3 .csproj
3737 GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
3838 SONAR_TOKEN : ' ${{ secrets.SONAR_TOKEN }}'
3939 run : >
@@ -48,14 +48,14 @@ 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/Net5 /bin/tests.trx" \
52- /d:sonar.cs.opencover.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/Net5 /bin/coverage.xml"
51+ /d:sonar.cs.vstest.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/NetCore3 /bin/tests.trx" \
52+ /d:sonar.cs.opencover.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/NetCore3 /bin/coverage.xml"
5353
5454 dotnet test $NETCORE5_TEST_PROJECT -c Release
55- -l:"trx;LogFileName=tests.trx" -r:"./Mastercard.Developer.OAuth1Signer.Tests/Net5 /bin/" /p:CollectCoverage=true
55+ -l:"trx;LogFileName=tests.trx" -r:"./Mastercard.Developer.OAuth1Signer.Tests/NetCore3 /bin/" /p:CollectCoverage=true
5656 /p:CoverletOutputFormat="opencover"
5757 /p:CoverletOutput="bin/coverage.xml"
5858
59- dotnet publish $NETCORE5_TEST_PROJECT -c Release
59+ dotnet publish $NETCORE3_TEST_PROJECT -c Release
6060
6161 dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"
0 commit comments