Skip to content

Commit

Permalink
garden: "check" now runs tests and checks in one shot
Browse files Browse the repository at this point in the history
  • Loading branch information
davvid committed Aug 31, 2023
1 parent 5326b15 commit 53d8c54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit 53d8c54

Please sign in to comment.