Skip to content

Commit 878ea8e

Browse files
committed
use the local pacakge for the test
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 63f60d6 commit 878ea8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@ jobs:
3636
run: dotnet pack -c Release /p:BuildNumber=${{ github.run_number }}
3737
- name: Test Template
3838
run: |
39+
artifact_dir=${{ github.workspace }}/artifacts
3940
dotnet new install ./artifacts/BytecodeAlliance.Componentize.DotNet.Templates.*.nupkg
4041
mkdir ${{ runner.temp }}/projects
4142
pushd ${{ runner.temp }}/projects
4243
dotnet new componentize.wasi.cli -o test
4344
cd test
45+
dotnet nuget add source $artifact_dir
4446
dotnet build
47+
dotnet list package
4548
popd
4649
# must use windows to generate package https://github.com/bytecodealliance/componentize-dotnet/issues/41
4750
# only need one package published https://github.com/actions/upload-artifact?tab=readme-ov-file#not-uploading-to-the-same-artifact

0 commit comments

Comments
 (0)