2026-01-29 08:45:42 +00:00
|
|
|
steps:
|
|
|
|
|
backend:
|
|
|
|
|
image: rust:1.76-bookworm
|
|
|
|
|
environment:
|
|
|
|
|
DATABASE_URL: postgres://postgres:postgres@postgres:5432/likwid_ci
|
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
|
commands:
|
|
|
|
|
- rustup component add rustfmt clippy
|
2026-02-03 08:52:07 +00:00
|
|
|
- cargo install -j 2 sqlx-cli --no-default-features --features postgres,tls-rustls
|
2026-01-29 08:45:42 +00:00
|
|
|
- cd backend
|
|
|
|
|
- sqlx migrate run
|
|
|
|
|
- cargo fmt --all -- --check
|
2026-02-03 08:52:07 +00:00
|
|
|
- cargo clippy -j 2 --all-targets --all-features -- -D warnings
|
|
|
|
|
- cargo test -j 2 --all
|
|
|
|
|
- cargo build -j 2 --release
|
2026-01-29 08:45:42 +00:00
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
|
image: node:20-bookworm
|
|
|
|
|
commands:
|
|
|
|
|
- cd frontend
|
|
|
|
|
- npm ci
|
|
|
|
|
- npm run build
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:16
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
|
POSTGRES_DB: likwid_ci
|