mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-06-25 07:27:42 +00:00
repo: add 1 file
Verified changes: - add .woodpecker.yml Diffstat: - 1 file changed, 30 insertions(+)
This commit is contained in:
parent
4acca16670
commit
5c29d6101a
1 changed files with 30 additions and 0 deletions
30
.woodpecker.yml
Normal file
30
.woodpecker.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
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
|
||||||
Loading…
Reference in a new issue