diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 885e2ab..7450b9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,10 @@ jobs: - run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy --no-self-update - uses: Swatinem/rust-cache@v2 - run: cargo install --path . - - name: Run checks - run: garden -vv check + - name: Run clippy checks + run: garden -vv check/clippy + - name: Run format checks + run: garden -vv check/fmt docs: name: Documentation diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1b7f478..065120e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,7 +28,8 @@ checks: script: - rustup component add clippy - rustup component add rustfmt - - garden -vv check + - garden -vv check/clippy + - garden -vv check/fmt build:amd64: stage: build diff --git a/garden.yaml b/garden.yaml index 0a90aef..0042154 100644 --- a/garden.yaml +++ b/garden.yaml @@ -7,7 +7,7 @@ commands: bench: cargo bench "$@" build: cargo build "$@" - check: garden -vv cmd garden check/clippy check/fmt + check: garden -vv cmd garden test check/clippy check/fmt check/clippy: cargo clippy --all "$@" -- -D warnings check/fmt: cargo fmt --check "$@" clean: cargo clean "$@"