Skip to content

Commit

Permalink
build: clean install tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Sep 22, 2023
1 parent 4f123d8 commit 8a3286c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ description = "Check lint of all sources files."
[tasks.lint-toml]
args = ["lint"]
command = "taplo"
dependencies = ["install-taplo-cli"]
description = "Check lint of all toml files."
install_crate = { crate_name = "taplo-cli", binary = "taplo", test_arg = "--help" }

[tasks.lint-cargo-toml]
args = ["Cargo.toml"]
command = "cargo-toml-lint"
dependencies = ["install-cargo-toml-lint"]
description = "Check lint of cargo toml files."
install_crate = { crate_name = "cargo-toml-lint", binary = "cargo-toml-lint", test_arg = "--help" }

[tasks.format-toml]
args = ["fmt"]
command = "taplo"
dependencies = ["install-taplo-cli"]
description = "Format toml file"
install_crate = { crate_name = "taplo-cli", binary = "taplo", test_arg = "--help" }

[tasks.lint]
dependencies = ["lint-rust-format", "lint-rust", "lint-toml", "lint-cargo-toml"]
Expand Down Expand Up @@ -79,6 +79,12 @@ install_crate = { rustup_component_name = "clippy", min_version = "0.1.72" }
dependencies = ["install-clippy"]
install_crate = { crate_name = "cargo-cranky", min_version = "0.3.0" }

[tasks.install-taplo-cli]
install_crate = { crate_name = "taplo-cli", binary = "taplo", test_arg = "--help" }

[tasks.install-cargo-toml-lint]
install_crate = { crate_name = "cargo-toml-lint", binary = "cargo-toml-lint", test_arg = "--help" }

[tasks.publish]
args = ["publish", "--token", "${CARGO_API_TOKEN}"]
command = "cargo"
Expand Down

0 comments on commit 8a3286c

Please sign in to comment.