add clippy and tests

This commit is contained in:
Fractal-Tess
2023-05-19 02:47:12 +03:00
parent 9436a2633d
commit 1135211381
3 changed files with 16 additions and 0 deletions

View File

@@ -59,6 +59,12 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Clippy & Tests
run: |
cd src-tauri
cargo clippy --all --tests -- -D warnings
cargo test --all
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |

View File

@@ -55,6 +55,12 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Clippy & Tests
run: |
cd src-tauri
cargo clippy --all --tests -- -D warnings
cargo test --all
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |

View File

@@ -4,3 +4,7 @@
# If not using pnpm, switch to your package manager
npx lint-staged
cd src-tauri
cargo clippy --all --tests -- -D warnings
cargo test --all