create-svc 0.1.83 → 0.1.84

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.83",
3
+ "version": "0.1.84",
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",
@@ -138,6 +138,17 @@ test("scaffolds all runtime/framework variants with shared cloudrun config", asy
138
138
  expect(await Bun.file(join(generatedRoot, "grafana", "waitlist-dashboard.json")).exists()).toBeTrue();
139
139
  expect(await Bun.file(join(generatedRoot, "grafana", "alerts.yaml")).exists()).toBeTrue();
140
140
 
141
+ const ciWorkflow = await Bun.file(join(generatedRoot, ".github", "workflows", "ci.yml")).text();
142
+ expect(ciWorkflow).not.toContain("go install github.com/bufbuild/buf/cmd/buf@latest");
143
+ if (variant.runtime === "go" && variant.framework === "connectrpc") {
144
+ expect(ciWorkflow).toContain("bufbuild/buf-setup-action@v1");
145
+ expect(ciWorkflow).toContain('version: "1.60.0"');
146
+ expect(ciWorkflow).toContain("'connectrpc' == 'connectrpc'");
147
+ }
148
+ if (variant.runtime === "go" && variant.framework === "chi") {
149
+ expect(ciWorkflow).toContain("'chi' == 'connectrpc'");
150
+ }
151
+
141
152
  const previewWorkflow = await Bun.file(join(generatedRoot, ".github", "workflows", "preview.yml")).text();
142
153
  expect(previewWorkflow).toContain("issue_comment:");
143
154
  expect(previewWorkflow).toContain("/deploy preview");
@@ -18,8 +18,10 @@ jobs:
18
18
  go-version: "1.25"
19
19
  - if: ${{ '{{RUNTIME}}' == 'go' }}
20
20
  uses: ariga/setup-atlas@v0
21
- - if: ${{ '{{RUNTIME}}' == 'go' }}
22
- run: go install github.com/bufbuild/buf/cmd/buf@latest
21
+ - if: ${{ '{{RUNTIME}}' == 'go' && '{{FRAMEWORK}}' == 'connectrpc' }}
22
+ uses: bufbuild/buf-setup-action@v1
23
+ with:
24
+ version: "1.60.0"
23
25
  - run: bun install
24
26
  - run: bun run lint
25
27
  - run: bun run test