diff --git a/.github/workflows/rs-ci.yml b/.github/workflows/rs-ci.yml index e5bb731..157575e 100644 --- a/.github/workflows/rs-ci.yml +++ b/.github/workflows/rs-ci.yml @@ -24,6 +24,8 @@ jobs: run: cargo make format - name: Run check run: cargo make check + - name: Run check doc + run: cargo make check-doc - name: Run clippy run: cargo make clippy - name: Run test diff --git a/Makefile.toml b/Makefile.toml index d2b7e4d..8598c95 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -1,3 +1,6 @@ +[env] +CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true + [config] skip_core_tasks = true @@ -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"] @@ -18,9 +26,4 @@ command = "cargo" args = ["test", "--verbose"] [tasks.ci-flow] -dependencies = [ - "format", - "check", - "clippy", - "test" -] +dependencies = ["format", "check", "check-doc", "clippy", "test"]