Skip to content

Commit

Permalink
Add check doc step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-dinculescu committed Dec 22, 2024
1 parent 560f588 commit be5bf81
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
run: cargo make format
- name: Run check
run: cargo make check
- name: Run check
run: cargo make check-doc
- name: Run clippy
run: cargo make clippy
- name: Run test
Expand Down
15 changes: 9 additions & 6 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true

[config]
skip_core_tasks = true

Expand All @@ -9,6 +12,11 @@ args = ["fmt", "--verbose", "--", "--check"]
command = "cargo"
args = ["check", "--verbose"]

[tasks.check-doc]
env = { "RUSTDOCFLAGS" = "-D warnings" }
command = "cargo"
args = ["doc", "--no-deps"]

[tasks.clippy]
command = "cargo"
args = ["clippy", "--all-targets", "--all-features", "--verbose", "--", "-D", "warnings"]
Expand All @@ -18,9 +26,4 @@ command = "cargo"
args = ["test", "--verbose"]

[tasks.ci-flow]
dependencies = [
"format",
"check",
"clippy",
"test"
]
dependencies = ["format", "check", "check-doc", "clippy", "test"]

0 comments on commit be5bf81

Please sign in to comment.