|
22 | 22 | build-and-test: |
23 | 23 | runs-on: ubuntu-latest |
24 | 24 | 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' |
25 | 37 | steps: |
26 | 38 | - uses: actions/checkout@v6 |
27 | 39 |
|
|
39 | 51 | run: bun freebuff/cli/build.ts 0.0.0-ci |
40 | 52 |
|
41 | 53 | - 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' |
51 | 54 | run: | |
52 | 55 | chmod +x cli/bin/freebuff |
53 | 56 | cli/bin/freebuff --version |
|
0 commit comments