Skip to content

Commit

Permalink
add gh action for rustfmt and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Jan 9, 2025
1 parent 6a9667e commit 96ea475
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tauri-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Code Checks for rust part of delta tauri

on:
pull_request:
paths:
- packages/target-tauri/**

jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.77.2
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

run_clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.77.2
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --tests --examples

0 comments on commit 96ea475

Please sign in to comment.