From e073faf0be9fdcff06662d104ed4758cb831c2f6 Mon Sep 17 00:00:00 2001 From: Pierre Le Fevre Date: Fri, 28 Nov 2025 07:04:19 +0100 Subject: [PATCH] ci: add fmt, clippy, and test steps to tangled pipeline --- .tangled/workflows/build.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.tangled/workflows/build.yml b/.tangled/workflows/build.yml index 85bd65e..9ea1508 100644 --- a/.tangled/workflows/build.yml +++ b/.tangled/workflows/build.yml @@ -10,25 +10,33 @@ dependencies: nixpkgs: - rustc - cargo + - rustfmt + - clippy - gcc - pkg-config - - curl - skopeo - umoci - - jq - bash - coreutils - - findutils environment: CARGO_HOME: ".cargo" - BUILDAH_ISOLATION: "chroot" steps: + - name: "Check formatting" + command: | + cargo fmt --all -- --check + + - name: "Lint with Clippy" + command: | + cargo clippy --all-targets --all-features -- -D warnings + + - name: "Run tests" + command: | + cargo test + - name: "Build Rust binary" command: | - echo "Available environment variables:" - env | grep -i tangled || echo "No TANGLED_ vars found" cargo build --release ls -lh target/release/grain target/release/grainctl -- 2.51.2