Commit 4082b65
authored
[chore]: fix e2e local tests in CI (#1323)
# why
- our `e2e:local` tests now require LLM API keys
- these are currently unavailable during the `e2e:local` step in CI,
which causes them to fail
# what changed
- added the relevant LLM API keys to the `env` in CI
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes failing e2e:local tests in CI by skipping forks and passing the
required API keys to the job.
# Why:
- E2E local tests were failing due to missing secrets and forked PRs not
having access to them.
# What:
- Added job condition to run only on pushes and same-repo PRs (skip
forks).
- Passed required env secrets: OPENAI_API_KEY, ANTHROPIC_API_KEY,
GOOGLE_GENERATIVE_AI_API_KEY, BROWSERBASE_API_KEY,
BROWSERBASE_PROJECT_ID.
- Added ANTHROPIC_API_KEY to turbo.json env for the e2e:local task.
# Test Plan:
- Push a branch in this repo: e2e:local job runs and passes.
- Open a PR from this repo: job runs and external API calls succeed.
- Open a PR from a fork: e2e:local job is skipped.
- Run tests locally with required API keys set: tests pass.
<sup>Written for commit 7eb1ed9.
Summary will update automatically on new commits.</sup>
<!-- End of auto-generated description by cubic. -->1 parent ea41abb commit 4082b65
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
190 | 193 | | |
| 194 | + | |
191 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
192 | 199 | | |
193 | 200 | | |
194 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
0 commit comments