chore(deps): update dependency pnpm to v10.34.3 (#168) #370
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Test | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| workflow_call: | |
| jobs: | |
| frontend: | |
| name: Frontend Build and Test | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./frontend | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10.34.3 | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check Frontend Format | |
| run: pnpm run format:check | |
| - name: Lint Frontend | |
| run: pnpm run lint | |
| - name: Check Unused Code | |
| run: pnpm run knip | |
| - name: Build Frontend | |
| env: | |
| NODE_OPTIONS: "--max_old_space_size=4096" | |
| run: pnpm run build | |
| backend: | |
| name: Backend Build and Test | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./backend | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Backend Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install uv | |
| uv venv | |
| echo "$GITHUB_WORKSPACE/backend/.venv/bin" >> $GITHUB_PATH | |
| source .venv/bin/activate | |
| uv pip install -r requirements.txt | |
| uv pip install -r requirements-dev.txt | |
| - name: Check Backend Format | |
| run: ruff format --check . | |
| - name: Lint Backend | |
| run: ruff check . | |
| - name: Run Backend Tests with Coverage | |
| run: | | |
| # Start mock server in background | |
| python tests/mock_api/server.py & | |
| SERVER_PID=$! | |
| # Wait for server to start (check health endpoint) | |
| echo "Waiting for mock server..." | |
| for i in {1..30}; do | |
| if curl -s http://localhost:8888/health > /dev/null 2>&1; then | |
| echo "Mock server is ready!" | |
| break | |
| fi | |
| sleep 1 | |
| done | |
| # Run tests | |
| pytest --cov=. --cov-report=term-missing --cov-report=xml --cov-report=html | |
| TEST_RESULT=$? | |
| # Always kill the server | |
| kill $SERVER_PID || true | |
| # Exit with test result | |
| exit $TEST_RESULT | |
| docs: | |
| name: Documentation Build and Test | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./docs | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| - name: Check for broken links | |
| run: npx mintlify@4.2.510 broken-links | |
| continue-on-error: true |