diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index df71835..7587957 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed67d9d..72a115e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: | diff --git a/.husky/pre-commit b/.husky/pre-commit index 33dee91..8dddf58 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -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 +