Skip to content

Commit e6a1677

Browse files
Sync public snapshot from freebuff-private
1 parent 66ec694 commit e6a1677

6 files changed

Lines changed: 597 additions & 287 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ jobs:
2222
build-and-test:
2323
runs-on: ubuntu-latest
2424
timeout-minutes: 30
25+
# The build inlines NEXT_PUBLIC_* into the binary, and the smoke test runs
26+
# it with a clean environment, so these must be set for the build step.
27+
# Not keys: the schema only needs non-empty strings.
28+
env:
29+
NEXT_PUBLIC_CB_ENVIRONMENT: prod
30+
NEXT_PUBLIC_CODEBUFF_APP_URL: https://codebuff.com
31+
NEXT_PUBLIC_SUPPORT_EMAIL: support@freebuff.com
32+
NEXT_PUBLIC_POSTHOG_API_KEY: ci-not-a-key
33+
NEXT_PUBLIC_POSTHOG_HOST_URL: https://us.i.posthog.com
34+
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: ci-not-a-key
35+
NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL: https://billing.stripe.com/p/login/test
36+
NEXT_PUBLIC_WEB_PORT: '3000'
2537
steps:
2638
- uses: actions/checkout@v6
2739

@@ -39,15 +51,6 @@ jobs:
3951
run: bun freebuff/cli/build.ts 0.0.0-ci
4052

4153
- name: Smoke test Freebuff binary
42-
env:
43-
NEXT_PUBLIC_CB_ENVIRONMENT: prod
44-
NEXT_PUBLIC_CODEBUFF_APP_URL: https://codebuff.com
45-
NEXT_PUBLIC_SUPPORT_EMAIL: support@freebuff.com
46-
NEXT_PUBLIC_POSTHOG_API_KEY: phc_public_placeholder
47-
NEXT_PUBLIC_POSTHOG_HOST_URL: https://us.i.posthog.com
48-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: pk_test_placeholder
49-
NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL: https://billing.stripe.com/p/login/test
50-
NEXT_PUBLIC_WEB_PORT: '3000'
5154
run: |
5255
chmod +x cli/bin/freebuff
5356
cli/bin/freebuff --version

0 commit comments

Comments
 (0)