chore(ci): align lint gate and add strict audit path (#410)
This commit is contained in:
parent
74c0c7340b
commit
b161fff9ef
5 changed files with 48 additions and 10 deletions
|
|
@ -110,6 +110,12 @@ This runs inside a container:
|
|||
- `cargo audit`
|
||||
- Docker smoke build (`docker build --target dev ...` + `--version` check)
|
||||
|
||||
To run an opt-in strict lint audit locally:
|
||||
|
||||
```bash
|
||||
./dev/ci.sh lint-strict
|
||||
```
|
||||
|
||||
### 3. Run targeted stages
|
||||
|
||||
```bash
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ Usage: ./dev/ci.sh <command>
|
|||
Commands:
|
||||
build-image Build/update the local CI image
|
||||
shell Open an interactive shell inside the CI container
|
||||
lint Run rustfmt + clippy (container only)
|
||||
lint Run rustfmt + clippy correctness gate (container only)
|
||||
lint-strict Run rustfmt + full clippy warnings gate (container only)
|
||||
test Run cargo test (container only)
|
||||
build Run release build smoke check (container only)
|
||||
audit Run cargo audit (container only)
|
||||
|
|
@ -56,6 +57,10 @@ case "$1" in
|
|||
run_in_ci "cargo fmt --all -- --check && cargo clippy --locked --all-targets -- -D clippy::correctness"
|
||||
;;
|
||||
|
||||
lint-strict)
|
||||
run_in_ci "cargo fmt --all -- --check && cargo clippy --locked --all-targets -- -D warnings"
|
||||
;;
|
||||
|
||||
test)
|
||||
run_in_ci "cargo test --locked --verbose"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue