mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-10 05:23:09 +00:00
30 lines
771 B
YAML
30 lines
771 B
YAML
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
|
|
- cargo install sqlx-cli --no-default-features --features postgres,tls-rustls
|
|
- cd backend
|
|
- sqlx migrate run
|
|
- cargo fmt --all -- --check
|
|
- cargo clippy --all-targets --all-features -- -D warnings
|
|
- cargo test --all
|
|
- cargo build --release
|
|
|
|
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
|