Skip to content

Commit 3bc6449

Browse files
committed
be explicit about test TFMs
1 parent 3ebbdf0 commit 3bc6449

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/actions/run-tests/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ runs:
6666
run: >-
6767
dotnet test tests/StackExchange.Redis.Tests/StackExchange.Redis.Tests.csproj
6868
-c Release
69+
-f net10.0
6970
--logger trx
7071
--logger "GitHubActions;summary-include-passed=false;summary-include-skipped=false"
7172
--results-directory ./test-results/

.github/workflows/CI.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,15 @@ jobs:
119119
- name: .NET Build
120120
run: dotnet build Build.csproj -c Release /p:CI=true
121121
- name: StackExchange.Redis.Tests
122-
run: dotnet test tests/StackExchange.Redis.Tests/StackExchange.Redis.Tests.csproj -c Release --logger trx --logger GitHubActions --results-directory ./test-results/ /p:CI=true
122+
run: |
123+
$exitCode = 0
124+
foreach ($tfm in @("net10.0", "net481")) {
125+
dotnet test tests/StackExchange.Redis.Tests/StackExchange.Redis.Tests.csproj -c Release -f $tfm --logger trx --logger GitHubActions --results-directory ./test-results/ /p:CI=true
126+
if ($LASTEXITCODE -ne 0) {
127+
$exitCode = $LASTEXITCODE
128+
}
129+
}
130+
exit $exitCode
123131
- uses: dorny/test-reporter@v3
124132
continue-on-error: true
125133
if: success() || failure()

0 commit comments

Comments
 (0)