@@ -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 6
25+ - name : Setup .NET 8
26262727 with :
28- dotnet-version : 6 .0.x
28+ dotnet-version : 8 .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.ClientEncryption.Tests/Net5/ Mastercard.Developer.ClientEncryption.Tests.Net5 .csproj
35+ NETCORE_TEST_PROJECT : >-
36+ Mastercard.Developer.ClientEncryption.Tests/Mastercard.Developer.ClientEncryption.Tests.csproj
3737 GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
3838 SONAR_TOKEN : ' ${{ secrets.SONAR_TOKEN }}'
3939 run : >
@@ -47,11 +47,11 @@ jobs:
4747 /o:"mastercard" \
4848 /d:sonar.host.url="https://sonarcloud.io" \
4949 /d:sonar.login="$SONAR_TOKEN" \
50- /d:sonar.cs.vstest.reportsPaths="./Mastercard.Developer.ClientEncryption.Tests/Net5/ bin/tests.trx" \
51- /d:sonar.cs.opencover.reportsPaths="./Mastercard.Developer.ClientEncryption.Tests/Net5/ bin/coverage.xml"
50+ /d:sonar.cs.vstest.reportsPaths="./Mastercard.Developer.ClientEncryption.Tests/bin/tests.trx" \
51+ /d:sonar.cs.opencover.reportsPaths="./Mastercard.Developer.ClientEncryption.Tests/bin/coverage.xml"
5252
5353 dotnet test $NETCORE5_TEST_PROJECT -c Release
54- -l:"trx;LogFileName=tests.trx" -r:"./Mastercard.Developer.ClientEncryption.Tests/Net5/ bin/" /p:CollectCoverage=true
54+ -l:"trx;LogFileName=tests.trx" -r:"./Mastercard.Developer.ClientEncryption.Tests/bin/" /p:CollectCoverage=true
5555 /p:CoverletOutputFormat="opencover"
5656 /p:CoverletOutput="bin/coverage.xml"
5757
0 commit comments