Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/.audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Audit

on: { workflow_call: {} }

jobs:
docs:
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4
- name: Run audit
uses: soltiHQ/actions/taskfile@main
with: { command: cargo/audit }
6 changes: 5 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ jobs:
name: Docs
uses: ./.github/workflows/.docs.yml

audit:
name: Audit
uses: ./.github/workflows/.audit.yml

pr-check:
name: Pr Check
needs: docs
needs: [docs, audit]
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: All checks passed
Expand Down
24 changes: 24 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,31 +77,55 @@ tasks:

cargo/fmt:
desc: Run 'cargo fmt'.
silent: true
cmds:
- task: _cargo/tool
vars:
CMD: "fmt --check --verbose"

cargo/clippy:
desc: Run 'cargo clippy'.
silent: true
cmds:
- task: _cargo/tool
vars:
CMD: "clippy --all --all-features -- -D warnings"

cargo/test:
desc: Run 'cargo test'.
silent: true
cmds:
- task: _cargo/tool
vars:
CMD: "test --all --all-features"

cargo/docs:
desc: Run 'rustdoc'.
silent: true
cmds:
- task: _cargo/tool
vars:
CMD: >-
+nightly rustdoc --lib -Zrustdoc-map --features "logging controller"
-Zunstable-options -Zrustdoc-scrape-examples
--config 'build.rustdocflags=["--cfg","docsrs","-Z","unstable-options","--cap-lints","warn"]'

cargo/audit:
desc: Run 'audit'.
silent: true
cmds:
- task: _cargo/tool
vars:
CMD: "audit"

# ================================================#
# ----------------------MANUAL--------------------#
# ================================================#

cargo/audit/fix:
desc: Run 'audit' with auto fix
silent: true
cmds:
- task: _cargo/tool
vars:
CMD: "audit fix"