diff --git a/.woodpecker.yml b/.woodpecker.yml index c5e4296..dfbd038 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -12,7 +12,8 @@ steps: - apt-get update - apt-get install postgresql sudo -y --no-install-recommends --no-install-suggests - adduser testuser - - PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH" sudo -u testuser cargo test --no-fail-fast + - export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH" + - sudo -E -u testuser cargo test --no-fail-fast cargo_fmt: image: *rust_image