Skip to content

Commit 49ae5dc

Browse files
committed
(#170) Wire demo/script + demo/frosting into build.yml
Run both demos as separate CI steps after the recipe build, so regressions in either invocation surface in the same workflow as the addin's own test suite. demo/sdk joins at v9.0.0 (Cake 6). `if: success()` keeps the demos gated on the recipe build passing first — they consume BuildArtifacts/temp/_PublishedLibraries/ which only exists after DotNetCore-Pack runs.
1 parent a18f7e4 commit 49ae5dc

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,24 @@ jobs:
8383
verbosity: Normal
8484
cake-version: tool-manifest
8585

86+
# The demo/ folders exercise the just-built addin DLL under
87+
# Cake-major-matching cake.tool / Cake.Frosting versions. They run
88+
# in their OWN tool/package context (independent of recipe.cake's
89+
# cake.tool, which is constrained by Cake.Recipe's runtime). Both
90+
# consume the addin from BuildArtifacts/temp/_PublishedLibraries/
91+
# populated by DotNetCore-Pack. demo/sdk joins at the Cake 6
92+
# catch-up release.
93+
94+
- name: Run demo/script
95+
if: success()
96+
shell: pwsh
97+
run: ./demo/script/build.ps1
98+
99+
- name: Run demo/frosting
100+
if: success()
101+
shell: pwsh
102+
run: ./demo/frosting/build.ps1
103+
86104
- name: Upload Issues-Report
87105
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
88106
with:

0 commit comments

Comments
 (0)