Skip to content

chore(deps-dev): bump vitest from 4.1.1 to 4.1.2 in /web #10

chore(deps-dev): bump vitest from 4.1.1 to 4.1.2 in /web

chore(deps-dev): bump vitest from 4.1.1 to 4.1.2 in /web #10

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
k8s:
name: K8s manifests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-kubectl@v4
with:
version: v1.30.0
- name: Validate kustomize renders
run: make k8s-validate
backend:
name: Backend (Python 3.12)
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: openhive_test
POSTGRES_USER: openhive
POSTGRES_PASSWORD: openhive
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U openhive"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install dependencies
working-directory: server
run: uv sync --all-extras
- name: Lint (ruff)
working-directory: server
run: uv run ruff check hive/ tests/
- name: Type check (pyright)
working-directory: server
run: uv run pyright hive/
continue-on-error: true # remove once pyright strict is fully clean
- name: Test (pytest)
working-directory: server
env:
DATABASE_URL: postgresql+asyncpg://openhive:openhive@localhost:5432/openhive_test
LLM_API_KEY: test-key
run: uv run pytest tests/ -q --tb=short -m "not integration"
frontend:
name: Frontend (Node 20)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: web/package-lock.json
- name: Install dependencies
working-directory: web
run: npm ci
- name: Type check (tsc)
working-directory: web
run: npx tsc --noEmit
- name: Test (vitest)
working-directory: web
run: npm test
e2e:
name: E2E (Playwright)
runs-on: ubuntu-latest
needs: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: web/package-lock.json
- name: Install dependencies
working-directory: web
run: npm ci
- name: Install Playwright browsers
working-directory: web
run: npx playwright install --with-deps chromium
- name: Run E2E tests
working-directory: web
run: npx playwright test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: web/playwright-report/
retention-days: 7