mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-19 14:47:36 -04:00
ci: add Clippy Linter (#207)
This commit is contained in:
parent
4e10c0ac2f
commit
7ff88c43b1
13
.github/workflows/lint.yaml
vendored
13
.github/workflows/lint.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue