Skip to content

Commit

Permalink
Improve CI jobs for checking/linting code
Browse files Browse the repository at this point in the history
  • Loading branch information
sophokles73 committed Jan 16, 2025
1 parent 971c860 commit 2cb2e11
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
toolchain: ${{ env.RUST_TOOLCHAIN }}
- name: Run cargo check
run: |
cargo check --all --tests
cargo check --workspace --all-targets --all-features
# [impl->req~up-language-ci-linter~1]
fmt:
Expand All @@ -85,7 +85,7 @@ jobs:
components: rustfmt
- name: Run cargo fmt
run: |
cargo fmt --all -- --check
cargo fmt --all --check
# [impl->req~up-language-ci-linter~1]
clippy:
Expand All @@ -101,7 +101,7 @@ jobs:
- name: Run cargo clippy
run: |
cargo clippy --version
cargo clippy --tests --examples
cargo clippy --all-targets --all-features --no-deps -- -W warnings -D warnings
# [impl->req~up-language-ci-api-docs~1]
docu:
Expand Down
13 changes: 10 additions & 3 deletions tools/fmt_clippy_doc.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/sh

cargo fmt -- --check
cargo clippy --all-targets -- -W warnings -D warnings
cargo doc -p up-rust --no-deps
echo "Running cargo fmt --check"
cargo fmt --all --check

echo ""
echo "Running cargo clippy"
cargo clippy --all-targets --all-features --no-deps -- -W warnings -D warnings

echo ""
echo "Running cargo doc"
cargo doc --no-deps --all-features

0 comments on commit 2cb2e11

Please sign in to comment.