Skip to content

Commit 19b3bb4

Browse files
fix framework
1 parent 5e88c56 commit 19b3bb4

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/test-framework.yaml

+20-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
strategy:
99
matrix:
1010
framework-version:
11-
- net481
12-
- net452
11+
- v4.8.1
12+
- v4.5.2
1313
steps:
1414
# 1. Checkout repository
1515
- name: Checkout Code
@@ -31,8 +31,13 @@ jobs:
3131

3232
# 5. Build the Solution
3333
- name: Build Solution for ${{ matrix.framework-version }}
34+
shell: pwsh
3435
run: |
35-
msbuild CloudinaryDotNet.sln /p:Configuration=Release /p:TargetFrameworkVersion=${{ matrix.framework-version }}
36+
Write-Host "⚒️ Building for: ${{ matrix.framework-version }}"
37+
38+
msbuild CloudinaryDotNet.sln `
39+
/p:Configuration=Release `
40+
/p:TargetFrameworkVersion=${{ matrix.framework-version }}
3641
3742
# 6. Run before_build.ps1
3843
- name: Run Before Build
@@ -41,10 +46,20 @@ jobs:
4146

4247
# 7. Run Unit Tests
4348
- name: Run Unit Tests for ${{ matrix.framework-version }}
49+
shell: pwsh
4450
run: |
45-
vstest.console.exe "./CloudinaryDotNet.Tests/bin/Release/${{ matrix.framework-version }}/CloudinaryDotNet.Tests.dll" /Framework:${{ matrix.framework-version }}
51+
Write-Host "🧪 Running Unit Tests for: ${{ matrix.framework-version }}"
52+
53+
vstest.console.exe `
54+
"./CloudinaryDotNet.Tests/bin/Release/${{ matrix.framework-version }}/CloudinaryDotNet.Tests.dll" `
55+
/Framework:${{ matrix.framework-version }}
4656
4757
# 8. Run Integration Tests
4858
- name: Run Integration Tests for ${{ matrix.framework-version }}
59+
shell: pwsh
4960
run: |
50-
vstest.console.exe "./CloudinaryDotNet.IntegrationTests/bin/Release/${{ matrix.framework-version }}/CloudinaryDotNet.IntegrationTests.dll" /Framework:${{ matrix.framework-version }}
61+
Write-Host "🧪 Running Integration Tests for: ${{ matrix.framework-version }}"
62+
63+
vstest.console.exe `
64+
"./CloudinaryDotNet.IntegrationTests/bin/Release/${{ matrix.framework-version }}/CloudinaryDotNet.IntegrationTests.dll" `
65+
/Framework:${{ matrix.framework-version }}

0 commit comments

Comments
 (0)