Skip to content

Commit 5309fbc

Browse files
committed
Add the cargo checks to the check script
1 parent 5b33e1e commit 5309fbc

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,4 @@ jobs:
2929
with:
3030
packages: libgtk-3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
3131
version: 1.0
32-
- name: Run clippy
33-
run: cargo clippy --all --tests -- -Dwarnings
34-
- name: Check formatting
35-
run: cargo fmt --all --check
32+
- run: npm run check-rs

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"start": "vite",
99
"build": "vite build",
1010
"preview": "vite preview",
11-
"check": "scripts/check",
11+
"check": "scripts/check-js",
12+
"check-rs": "scripts/check-rs",
1213
"format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' --write",
1314
"tauri": "npx tauri"
1415
},
File renamed without changes.

scripts/check_rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e
3+
4+
cargo check --manifest-path ./src-tauri/Cargo.toml
5+
cargo clippy --manifest-path ./src-tauri/Cargo.toml -- -Dwarnings
6+
cargo fmt --manifest-path ./src-tauri/Cargo.toml --check

0 commit comments

Comments
 (0)