Skip to content

chore(deps): update actions/upload-pages-artifact action to v4 - autoclosed #163

chore(deps): update actions/upload-pages-artifact action to v4 - autoclosed

chore(deps): update actions/upload-pages-artifact action to v4 - autoclosed #163

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
# ── Setup Python + uv ──────────────────────────────────────────
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
with:
enable-cache: true
cache-dependency-glob: backend/uv.lock
# ── Setup Node + pnpm ──────────────────────────────────────────
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
with:
version: 10
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: '22'
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml
# ── Install all dependencies ────────────────────────────────────
- name: Install backend dependencies
working-directory: backend
run: uv sync --group dev
- name: Install frontend dependencies
working-directory: frontend
run: pnpm install --frozen-lockfile
- name: Install root dependencies
run: pnpm install
# ── Dependency audit ────────────────────────────────────────────
- name: Backend dependency audit
working-directory: backend
run: uv run pip-audit
continue-on-error: true
- name: Frontend dependency audit
working-directory: frontend
run: pnpm audit --prod
continue-on-error: true
# ── Lint ────────────────────────────────────────────────────────
- name: Backend lint
working-directory: backend
run: uv run ruff check .
- name: Frontend lint
working-directory: frontend
run: pnpm run lint
# ── Type check ─────────────────────────────────────────────────
- name: Backend type check
working-directory: backend
run: uv run mypy src/
- name: Frontend type check
working-directory: frontend
run: pnpm run type-check
# ── Test ────────────────────────────────────────────────────────
- name: Backend tests
working-directory: backend
run: uv run pytest tests/ -v
- name: Frontend tests
working-directory: frontend
run: pnpm test
# ── Build frontend ─────────────────────────────────────────────
- name: Build frontend
working-directory: frontend
env:
VITE_API_BASE_URL: https://placeholder.example.com
run: pnpm run build