Skip to content

Commit a822ee5

Browse files
Update test job
1 parent b012c6f commit a822ee5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/publish_nuget.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@ jobs:
1616
- name: Setup .NET SDK
1717
uses: actions/setup-dotnet@v2
1818
with:
19-
dotnet-version: '7.0.x' # Specify the required .NET SDK version (e.g., 6.0.x or another version)
19+
dotnet-version: '7.0.x' # Specify the required .NET SDK version
2020

2121
- name: Restore dependencies
2222
run: dotnet restore
2323

2424
- name: Build project
2525
run: dotnet build --configuration Release --no-restore
2626

27-
- name: Run tests
28-
run: dotnet test SolveCaptcha.Tests/SolveCaptcha.Tests.csproj --configuration Release --no-build
27+
# Note:
28+
# Tests for .NET Core 3.1, .NET 5.0, and .NET 6.0 are not run in this CI workflow,
29+
# because the GitHub Actions environment is configured with .NET 7.0 runtime only.
30+
# To run tests for .NET Core 3.1, .NET 5.0, or .NET 6.0, execute the tests locally
31+
# on a machine where the corresponding runtime versions are installed.
32+
- name: Run tests (net7.0 only)
33+
run: dotnet test SolveCaptcha.Tests/SolveCaptcha.Tests.csproj --framework net7.0 --configuration Release --no-build
2934

3035
- name: Pack project
3136
run: dotnet pack --configuration Release --no-build --output nupkg

0 commit comments

Comments
 (0)