create-svc 0.1.67 → 0.1.68
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/package.json
CHANGED
package/src/scaffold.test.ts
CHANGED
|
@@ -146,6 +146,9 @@ test("scaffolds all runtime/framework variants with shared cloudrun config", asy
|
|
|
146
146
|
expect(previewWorkflow).toContain("steps.pr.outputs.number");
|
|
147
147
|
expect(previewWorkflow).toContain("NEON_API_KEY");
|
|
148
148
|
expect(previewWorkflow).toContain("CLOUDFLARE_API_TOKEN");
|
|
149
|
+
if (variant.runtime === "go") {
|
|
150
|
+
expect(previewWorkflow).toContain("ariga/setup-atlas");
|
|
151
|
+
}
|
|
149
152
|
|
|
150
153
|
const previewCleanupWorkflow = await Bun.file(join(generatedRoot, ".github", "workflows", "preview-cleanup.yml")).text();
|
|
151
154
|
expect(previewCleanupWorkflow).toContain("pull_request:");
|
|
@@ -155,6 +158,9 @@ test("scaffolds all runtime/framework variants with shared cloudrun config", asy
|
|
|
155
158
|
const deployWorkflow = await Bun.file(join(generatedRoot, ".github", "workflows", "deploy.yml")).text();
|
|
156
159
|
expect(deployWorkflow).toContain("branches:");
|
|
157
160
|
expect(deployWorkflow).toContain("- main");
|
|
161
|
+
if (variant.runtime === "go") {
|
|
162
|
+
expect(deployWorkflow).toContain("ariga/setup-atlas");
|
|
163
|
+
}
|
|
158
164
|
expect(deployWorkflow).toContain("gcloud components install beta --quiet");
|
|
159
165
|
expect(deployWorkflow).toContain("bun install -g create-svc@latest");
|
|
160
166
|
expect(deployWorkflow).toContain("service deploy --ci");
|
|
@@ -166,6 +172,9 @@ test("scaffolds all runtime/framework variants with shared cloudrun config", asy
|
|
|
166
172
|
expect(personalWorkflow).toContain("workflow_dispatch:");
|
|
167
173
|
expect(personalWorkflow).toContain("service deploy --ci --environment personal --name");
|
|
168
174
|
expect(personalWorkflow).toContain("service deploy --ci --destroy --environment personal --name");
|
|
175
|
+
if (variant.runtime === "go") {
|
|
176
|
+
expect(personalWorkflow).toContain("ariga/setup-atlas");
|
|
177
|
+
}
|
|
169
178
|
|
|
170
179
|
if (variant.runtime === "go") {
|
|
171
180
|
const goMod = await Bun.file(join(generatedRoot, "go.mod")).text();
|