From 90f2476f3df28bb6c55e0a7daf2e0571aa5f438b Mon Sep 17 00:00:00 2001 From: hdbg Date: Sat, 14 Feb 2026 18:33:33 +0100 Subject: [PATCH] ci(server): introduce tests pipeline --- .woodpecker/server-test.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .woodpecker/server-test.yaml diff --git a/.woodpecker/server-test.yaml b/.woodpecker/server-test.yaml new file mode 100644 index 0000000..37b3cfa --- /dev/null +++ b/.woodpecker/server-test.yaml @@ -0,0 +1,26 @@ +when: + - event: pull_request + path: + include: ['.woodpecker/server-*.yaml', 'server/**'] + - event: push + branch: main + path: + include: ['.woodpecker/server-*.yaml', 'server/**'] + +steps: + - name: test + image: mise:latest + directory: server + environment: + CARGO_TERM_COLOR: always + CARGO_TARGET_DIR: /usr/local/cargo/target + CARGO_HOME: /usr/local/cargo/registry + volumes: + - cargo-target:/usr/local/cargo/target + - cargo-registry:/usr/local/cargo/registry + commands: + - apt-get update && apt-get install -y pkg-config + # Install only the necessary Rust toolchain and test runner to speed up the CI + - mise install rust + - mise install cargo:cargo-nextest + - mise exec cargo:cargo-nextest -- cargo nextest run --no-fail-fast \ No newline at end of file