Skip to content

Polish README for a public release #8

Polish README for a public release

Polish README for a public release #8

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
backend:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: gateway
POSTGRES_PASSWORD: gateway
POSTGRES_DB: gateway
ports:
- "5433:5432"
options: >-
--health-cmd "pg_isready -U gateway"
--health-interval 5s --health-timeout 3s --health-retries 15
redis:
image: redis/redis-stack:7.4.0-v1
ports:
- "6380:6379"
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s --health-timeout 3s --health-retries 15
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
- name: Install
run: uv pip install -e ".[dev]"
- name: Lint
run: uv run ruff check backend
- name: Test
run: uv run pytest backend/tests -q
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Landing (pnpm)
working-directory: landing
run: |
# Pin pnpm (corepack 'latest' turns ignored native builds into a hard
# error; 10.28.x only warns, which is what we want here).
npm install -g pnpm@10.28.1
pnpm install --frozen-lockfile
pnpm build # generates routeTree.gen.ts (gitignored)
pnpm typecheck
- name: Dashboard (pnpm)
working-directory: dashboard
run: |
npm install -g pnpm@10.28.1
pnpm install --frozen-lockfile
pnpm build # generates routeTree.gen.ts (gitignored)
pnpm typecheck