mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 14:30:17 +08:00
* fix: update evaluator tests to use proper AnswerAction type Co-Authored-By: Han Xiao <han.xiao@jina.ai> * fix: increase token budget and mock external calls in agent test Co-Authored-By: Han Xiao <han.xiao@jina.ai> * test: add Docker build and container tests Co-Authored-By: Han Xiao <han.xiao@jina.ai> * feat: add health check endpoint for Docker container verification Co-Authored-By: Han Xiao <han.xiao@jina.ai> * chore: add Docker test script to package.json Co-Authored-By: Han Xiao <han.xiao@jina.ai> * ci: add Docker test step to CI workflow Co-Authored-By: Han Xiao <han.xiao@jina.ai> * fix: remove unused stdout variable in docker test Co-Authored-By: Han Xiao <han.xiao@jina.ai> close #53 --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Han Xiao <han.xiao@jina.ai>
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
if: "!startsWith(github.event.head_commit.message, 'chore')"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20.x'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run lint
|
|
run: npm run lint
|
|
|
|
- name: Run tests
|
|
env:
|
|
BRAVE_API_KEY: ${{ secrets.BRAVE_API_KEY }}
|
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
|
JINA_API_KEY: ${{ secrets.JINA_API_KEY }}
|
|
GOOGLE_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
run: npm test
|
|
|
|
- name: Set up Docker
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Run Docker tests
|
|
env:
|
|
BRAVE_API_KEY: mock_key
|
|
GEMINI_API_KEY: mock_key
|
|
JINA_API_KEY: mock_key
|
|
GOOGLE_API_KEY: mock_key
|
|
OPENAI_API_KEY: mock_key
|
|
run: npm run test:docker
|