Skip to content

Commit 585ada8

Browse files
committed
Run only net8.0 tests on AppVeyor
1 parent a66ab33 commit 585ada8

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ nuget:
6767
disable_publish_on_pr: true
6868

6969
build_script:
70-
- ps: .\build.ps1 -PullRequestNumber "$env:APPVEYOR_PULL_REQUEST_NUMBER" -CreatePackages ($env:OS -eq "Windows_NT")
70+
- ps: .\build.ps1 -PullRequestNumber "$env:APPVEYOR_PULL_REQUEST_NUMBER" -CreatePackages ($env:OS -eq "Windows_NT") -NetCoreOnlyTests
7171

7272
test: off
7373
artifacts:

build.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ param(
33
[bool] $CreatePackages,
44
[switch] $StartServers,
55
[bool] $RunTests = $true,
6-
[string] $PullRequestNumber
6+
[string] $PullRequestNumber,
7+
[switch] $NetCoreOnlyTests
78
)
89

910
Write-Host "Run Parameters:" -ForegroundColor Cyan
@@ -29,7 +30,11 @@ if ($RunTests) {
2930
Write-Host "Servers Started." -ForegroundColor "Green"
3031
}
3132
Write-Host "Running tests: Build.csproj traversal (all frameworks)" -ForegroundColor "Magenta"
32-
dotnet test ".\Build.csproj" -c Release --no-build --logger trx
33+
if ($NetCoreOnlyTests) {
34+
dotnet test ".\Build.csproj" -c Release -f net8.0 --no-build --logger trx
35+
} else {
36+
dotnet test ".\Build.csproj" -c Release --no-build --logger trx
37+
}
3338
if ($LastExitCode -ne 0) {
3439
Write-Host "Error with tests, aborting build." -Foreground "Red"
3540
Exit 1

0 commit comments

Comments
 (0)