ci: run backend checks in one shell

This commit is contained in:
Marco Allegretti 2026-02-05 10:20:20 +01:00
parent 0ecd28af64
commit 5e9893b588

View file

@ -7,8 +7,8 @@ steps:
commands: commands:
- rustup component add rustfmt clippy - rustup component add rustfmt clippy
- cargo install -j 2 sqlx-cli --version 0.8.6 --locked --no-default-features --features postgres,tls-rustls - cargo install -j 2 sqlx-cli --version 0.8.6 --locked --no-default-features --features postgres,tls-rustls
- cd backend
- | - |
cd backend
ok=0 ok=0
i=1 i=1
while [ "$i" -le 30 ]; do while [ "$i" -le 30 ]; do
@ -24,10 +24,10 @@ steps:
echo "sqlx migrate run failed after 30 attempts" echo "sqlx migrate run failed after 30 attempts"
exit 1 exit 1
fi fi
- cargo fmt --all -- --check cargo fmt --all -- --check
- cargo clippy -j 2 --all-targets --all-features -- -D warnings cargo clippy -j 2 --all-targets --all-features -- -D warnings
- cargo test -j 2 --all cargo test -j 2 --all
- cargo build -j 2 --release cargo build -j 2 --release
frontend: frontend:
image: node:20-bookworm image: node:20-bookworm