Skip to content

Commit 908ce9b

Browse files
authored
✅ improve samples code testing (#136) (#146)
1 parent acd2980 commit 908ce9b

14 files changed

Lines changed: 10 additions & 8 deletions

.github/workflows/test-sample-codes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ jobs:
5050
run: |
5151
mkdir "${{ github.workspace }}/localNuget"
5252
dotnet nuget add source "${{ github.workspace }}/localNuget" -n "NugetLocal"
53-
dotnet nuget list source
54-
dotnet pack "src/Mindee" --version-suffix "test" -p:TargetFrameworks=${{ matrix.dotnet-version }} --output nuget
53+
dotnet pack "src/Mindee" --version-suffix "for-sample-codes" -p:TargetFrameworks=${{ matrix.dotnet-version }} --output nuget
5554
cd nuget
5655
dotnet nuget push *.nupkg --source "NugetLocal"
5756
dotnet tool install -g dotnet-script
57+
dotnet nuget disable source nuget.org
5858
5959
- name: Tests sample code
6060
run: |

docs/code_samples/base.csx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env dotnet-script
2-
#r "nuget: Mindee, 2.1.0-test"
2+
#r "nuget: Mindee, *-*"
File renamed without changes.

0 commit comments

Comments
 (0)