Files
steep/.woodpecker/tests.yml
T
qpismont 8c763786c1
ci/woodpecker/push/tests Pipeline was successful
Remove apalis + redis => use postgresql instead
2026-10-06 19:41:14 +00:00

45 lines
1.1 KiB
YAML

when:
event:
- push
services:
- name: postgres
image: postgres:18
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: steep
steps:
- name: fmt
image: rust:1.99
commands:
- rustup component add rustfmt
- cargo fmt --all -- --check
- name: clippy
image: rust:1.99
commands:
- rustup component add clippy
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: wait-for-postgres
image: postgres:18
commands:
- until pg_isready -h postgres -U postgres; do sleep 1; done
- name: test
image: rust:1.99
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/steep
commands:
- cargo test --workspace --all-targets -- --include-ignored
- name: container-build
image: quay.io/buildah/stable
privileged: true
volumes:
- /data/woodpecker-builds:/data
commands:
- buildah bud -f Containerfile -t steep-ci .