Files
jos-alves ee617b12de
ci / rust (pull_request) Successful in 11m45s
ci / typescript (pull_request) Successful in 15m18s
chore(runtime): upgrade PhotoReport monorepo to Node.js 24.22.1 (BIT-31725)
Paperclip-Issue: BIT-31725
2026-10-23 17:45:50 +01:00

57 lines
1.8 KiB
YAML

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
typescript:
runs-on: ubuntu-latest
services:
postgres:
# Faces need pgvector (the migrations create the extension).
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: photoreport
POSTGRES_PASSWORD: photoreport
POSTGRES_DB: photoreport_test
options: >-
--health-cmd "pg_isready -U photoreport"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
DATABASE_URL_TEST: postgresql://photoreport:photoreport@postgres:5432/photoreport_test
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24.22.1
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm -r build
- run: pnpm -r typecheck
- run: pnpm -r test
- name: Deploy scripts parse
run: bash -n infra/deploy/deploy.sh && bash -n infra/deploy/boot.sh
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- run: cargo fmt --all --check
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo test --workspace
- name: Browser engine builds (wasm32)
run: |
rustup target add wasm32-unknown-unknown
cargo build --locked --profile wasm --target wasm32-unknown-unknown -p photoreport-engine-wasm
- name: Generated controls are up to date
run: |
cargo run -q -p photoreport-engine --example export_controls > packages/contracts/src/controls.generated.json
git diff --exit-code packages/contracts/src/controls.generated.json