@plainconceptsplatform/workflows 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stack-defaults.js
CHANGED
|
@@ -31,7 +31,7 @@ export function injectStackEnv(content, defaults) {
|
|
|
31
31
|
export function generateOpencodeCi(baseContent, inspection) {
|
|
32
32
|
let result = baseContent;
|
|
33
33
|
if (inspection.stackHints.solutionFiles.length > 0) {
|
|
34
|
-
const solutionPath = inspection.stackHints.solutionFiles[0];
|
|
34
|
+
const solutionPath = inspection.stackHints.solutionFiles[0].replaceAll("\\", "/");
|
|
35
35
|
const nugetSteps = ` - name: Cache NuGet packages
|
|
36
36
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
37
37
|
with:
|
|
@@ -123,6 +123,13 @@ describe("generateOpencodeCi", () => {
|
|
|
123
123
|
expect(result).toContain("\n - name: Restore .NET dependencies\n");
|
|
124
124
|
expect(result).not.toContain("\n - name: Restore .NET dependencies\n");
|
|
125
125
|
});
|
|
126
|
+
it("uses POSIX separators for .NET restore commands", () => {
|
|
127
|
+
const result = generateOpencodeCi(OPENCODE_CI_MD, makeInspection({
|
|
128
|
+
solutionFiles: ["apps\\api\\Numa.slnx"],
|
|
129
|
+
}));
|
|
130
|
+
expect(result).toContain("dotnet restore apps/api/Numa.slnx");
|
|
131
|
+
expect(result).not.toContain("dotnet restore apps\\api\\Numa.slnx");
|
|
132
|
+
});
|
|
126
133
|
it("adds the pinned OpenSpec CLI install step when openspec/ directory exists", () => {
|
|
127
134
|
const result = generateOpencodeCi(OPENCODE_CI_MD, makeInspection({
|
|
128
135
|
openSpec: true,
|