mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Drop redundant steps from the checks
svelte-check already type-checks what tsc did, clippy already runs cargo check, and radicle-tauri has no doc tests. Linting all targets also covers test code, which cargo test builds but never lints.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
npx tsc --noEmit
|
||||
# svelte-check also type-checks the .ts files in tsconfig.json, like tsc would.
|
||||
npx svelte-check --tsconfig tsconfig.json --fail-on-warnings --compiler-warnings options_missing_custom_element:ignore
|
||||
npx eslint --cache --cache-location node_modules/.cache/eslint --max-warnings 0 .
|
||||
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" "!crates/**/*" --ignore-path .gitignore --check --cache
|
||||
|
||||
+1
-2
@@ -4,6 +4,5 @@ set -e
|
||||
mkdir -p "$(dirname "$0")/../build"
|
||||
|
||||
cargo fmt --check
|
||||
cargo clippy --workspace -- -Dwarnings
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets -- -Dwarnings
|
||||
cargo test --workspace
|
||||
|
||||
Reference in New Issue
Block a user