Skip to content

Commit 2cb2e11

Browse files
committed
Improve CI jobs for checking/linting code
1 parent 971c860 commit 2cb2e11

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
toolchain: ${{ env.RUST_TOOLCHAIN }}
7171
- name: Run cargo check
7272
run: |
73-
cargo check --all --tests
73+
cargo check --workspace --all-targets --all-features
7474
7575
# [impl->req~up-language-ci-linter~1]
7676
fmt:
@@ -85,7 +85,7 @@ jobs:
8585
components: rustfmt
8686
- name: Run cargo fmt
8787
run: |
88-
cargo fmt --all -- --check
88+
cargo fmt --all --check
8989
9090
# [impl->req~up-language-ci-linter~1]
9191
clippy:
@@ -101,7 +101,7 @@ jobs:
101101
- name: Run cargo clippy
102102
run: |
103103
cargo clippy --version
104-
cargo clippy --tests --examples
104+
cargo clippy --all-targets --all-features --no-deps -- -W warnings -D warnings
105105
106106
# [impl->req~up-language-ci-api-docs~1]
107107
docu:

tools/fmt_clippy_doc.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/sh
22

3-
cargo fmt -- --check
4-
cargo clippy --all-targets -- -W warnings -D warnings
5-
cargo doc -p up-rust --no-deps
3+
echo "Running cargo fmt --check"
4+
cargo fmt --all --check
5+
6+
echo ""
7+
echo "Running cargo clippy"
8+
cargo clippy --all-targets --all-features --no-deps -- -W warnings -D warnings
9+
10+
echo ""
11+
echo "Running cargo doc"
12+
cargo doc --no-deps --all-features

0 commit comments

Comments
 (0)