ci: add Clippy Linter (#207)

This commit is contained in:
Tarun Samanta 2023-06-06 07:09:34 +05:30 committed by GitHub
parent 4e10c0ac2f
commit 7ff88c43b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,6 @@ on:
pull_request:
branches:
- main
jobs:
frontend:
name: Frontend
@ -35,6 +34,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- uses: Swatinem/rust-cache@v2
name: Cache Rust Build
@ -42,7 +42,18 @@ jobs:
shared-key: tauri-build-ubuntu-latest
workspaces: src-tauri
- name: Install Linux Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev libglew2.2 patchelf
- name: Check rust formatting
run: |
cd src-tauri/
cargo fmt --all --check
- uses: actions-rs/clippy-check@v1
name: Clippy Check
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --manifest-path src-tauri/Cargo.toml