-
Notifications
You must be signed in to change notification settings - Fork 7
/
justfile
42 lines (28 loc) · 941 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# See https://just.systems/man/
export RUST_BACKTRACE := env_var_or_default("RUST_BACKTRACE", "short")
export RUSTFLAGS := env_var_or_default("RUSTFLAGS", "-D warnings -A deprecated")
default: fetch deny lint test-build test
lint: check-fmt clippy docs md-lint action-lint action-dev-check
md-lint:
markdownlint-cli2 '**/*.md' '!**/target'
fetch:
just-cargo fetch
check-fmt:
just-cargo fmt -- --check
clippy:
just-cargo clippy --frozen --workspace --all-targets --all-features
deny:
cargo-deny --all-features check
docs:
just-cargo doc --frozen --no-deps --features=k8s-openapi/latest
test-build *flags:
just-cargo test-build --frozen {{ flags }}
test *flags:
just-cargo test --frozen {{ flags }}
publish *flags:
cargo publish --features=k8s-openapi/latest {{ flags }}
action-lint:
just-dev lint-actions
action-dev-check:
just-dev check-action-images
just-dev pull-action-images