Fix GitHub workflow: .env.llm-tests lost on checkout (#1041)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com> Co-authored-by: Thomas Nordquist <thomasnordquist@users.noreply.github.com>
This commit is contained in:
19
.github/copilot-instructions.md
vendored
19
.github/copilot-instructions.md
vendored
@@ -7,6 +7,17 @@
|
||||
3. **Evaluate after every session**: Consider whether the instructions need updates based on what you learned
|
||||
4. **Concise and useful**: All information must be actionable, current, and concise
|
||||
|
||||
## Code Formatting and Linting
|
||||
|
||||
**Before committing code, always run:**
|
||||
- `yarn lint:prettier:fix` - Format all TypeScript files with Prettier
|
||||
- `yarn lint:fix` - Fix ESLint and Prettier issues
|
||||
|
||||
**Check code quality:**
|
||||
- `yarn lint` - Check Prettier, ESLint, and spell checking
|
||||
- `yarn lint:prettier` - Check Prettier formatting only
|
||||
- `yarn lint:eslint` - Check ESLint only
|
||||
|
||||
## Test Commands
|
||||
|
||||
**Unit tests:**
|
||||
@@ -14,6 +25,14 @@
|
||||
- `yarn test:app` - Frontend tests only
|
||||
- `yarn test:backend` - Backend tests only
|
||||
|
||||
**LLM integration tests:**
|
||||
- Requires API key (OpenAI or Gemini)
|
||||
- **Setup**: Run `./scripts/setup-llm-env.sh` to create `.env.llm-tests` from injected secrets
|
||||
- **Usage**: `source .env.llm-tests && ./scripts/run-llm-tests.sh`
|
||||
- **Note**: The `.env.llm-tests` file must be sourced to get the LLM access token before running tests
|
||||
- Tests make real API calls and cost ~$0.01-$0.05 per run
|
||||
- See `app/src/services/spec/README.md` for details
|
||||
|
||||
**Integration tests:**
|
||||
- `yarn test:ui` - Browser tests (requires `yarn build` first)
|
||||
- `yarn test:demo-video` - UI recording (requires Xvfb, mosquitto, tmux, ffmpeg)
|
||||
|
||||
6
.github/workflows/copilot-setup-steps.yml
vendored
6
.github/workflows/copilot-setup-steps.yml
vendored
@@ -25,7 +25,11 @@ jobs:
|
||||
|
||||
- name: Persist Secrets to Agent Environment
|
||||
run: |
|
||||
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> .env.llm-tests
|
||||
echo "export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > .env.llm-tests
|
||||
echo "export RUN_LLM_TESTS=true" >> .env.llm-tests
|
||||
chmod 600 .env.llm-tests
|
||||
echo "✅ Created .env.llm-tests file"
|
||||
ls -la .env.llm-tests
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user