Skip to content

Commit

Permalink
Repo File Sync: Add check task to cargo makefile (#313)
Browse files Browse the repository at this point in the history
synced local file(s) with
[microsoft/mu_devops](https://github.com/microsoft/mu_devops).

🤖: View the [Repo File Sync Configuration
File](https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml)
to see how files are synced.

---

This PR was created automatically by the
[repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action)
workflow run
[#6220399996](https://github.com/microsoft/mu_devops/actions/runs/6220399996)

Signed-off-by: Project Mu UEFI Bot <[email protected]>
  • Loading branch information
uefibot committed Sep 18, 2023
1 parent dffd6e3 commit a98b012
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ clear = true
command = "cargo"
args = ["build", "@@split(PACKAGE_TARGET, )", "@@split(BUILD_FLAGS, )"]

[tasks.check]
description = "Checks rust code for errors. Example `cargo make check`"
clear = true
command = "cargo"
args = ["check", "@@split(PACKAGE_TARGET, )", "@@split(BUILD_FLAGS, )"]

[tasks.check_json]
description = "Checks rust code for errors with results in JSON. Example `cargo make check_json`"
clear = true
command = "cargo"
args = ["check", "@@split(PACKAGE_TARGET, )", "@@split(BUILD_FLAGS, )", "--message-format=json"]

[tasks.test]
description = "Builds all rust tests in the workspace. Example `cargo make test`"
clear = true
Expand Down

0 comments on commit a98b012

Please sign in to comment.