mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-10-18 19:10:45 +08:00
Add the cargo checks to the check script
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
||||
node-version: "20.9.0"
|
||||
- uses: actions/checkout@v4
|
||||
- run: npm ci
|
||||
- run: npm run check
|
||||
- run: npm run check-js
|
||||
lint-rust:
|
||||
name: lint rust
|
||||
runs-on: ubuntu-latest
|
||||
@@ -29,7 +29,4 @@ jobs:
|
||||
with:
|
||||
packages: libgtk-3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
|
||||
version: 1.0
|
||||
- name: Run clippy
|
||||
run: cargo clippy --all --tests -- -Dwarnings
|
||||
- name: Check formatting
|
||||
run: cargo fmt --all --check
|
||||
- run: npm run check-rs
|
||||
|
||||
+3
-1
@@ -8,7 +8,9 @@
|
||||
"start": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"check": "scripts/check",
|
||||
"check": "scripts/check-js && scripts/check-rs",
|
||||
"check-js": "scripts/check-js",
|
||||
"check-rs": "scripts/check-rs",
|
||||
"format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' --write",
|
||||
"tauri": "npx tauri"
|
||||
},
|
||||
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
cargo check --manifest-path ./src-tauri/Cargo.toml
|
||||
cargo clippy --manifest-path ./src-tauri/Cargo.toml -- -Dwarnings
|
||||
cargo fmt --manifest-path ./src-tauri/Cargo.toml --check
|
||||
Reference in New Issue
Block a user