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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-svc",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "description": "Local microservice bootstrap CLI for Cloud Run and Workers services with Neon-backed data.",
5
5
  "module": "index.ts",
6
6
  "type": "module",
@@ -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();
@@ -19,6 +19,8 @@ jobs:
19
19
  uses: actions/setup-go@v5
20
20
  with:
21
21
  go-version: "1.25"
22
+ - if: ${{ '{{RUNTIME}}' == 'go' }}
23
+ uses: ariga/setup-atlas@v0
22
24
  - uses: google-github-actions/auth@v2
23
25
  with:
24
26
  workload_identity_provider: ${{ vars.GCP_WIF_PROVIDER }}
@@ -25,6 +25,8 @@ jobs:
25
25
  uses: actions/setup-go@v5
26
26
  with:
27
27
  go-version: "1.25"
28
+ - if: ${{ '{{RUNTIME}}' == 'go' }}
29
+ uses: ariga/setup-atlas@v0
28
30
  - uses: google-github-actions/auth@v2
29
31
  with:
30
32
  workload_identity_provider: ${{ vars.GCP_WIF_PROVIDER }}
@@ -30,6 +30,8 @@ jobs:
30
30
  uses: actions/setup-go@v5
31
31
  with:
32
32
  go-version: "1.25"
33
+ - if: ${{ '{{RUNTIME}}' == 'go' }}
34
+ uses: ariga/setup-atlas@v0
33
35
  - uses: google-github-actions/auth@v2
34
36
  with:
35
37
  workload_identity_provider: ${{ vars.GCP_WIF_PROVIDER }}