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