From 6e1a801ed4b10f87c74c44a0234a0e0c8f9d1d51 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 26 Jan 2024 12:35:38 +0100 Subject: [PATCH] env --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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