Skip to content

Tauri Edition

Tauri Edition #4

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:
cwd: packages/target-tauri/src-tauri
command: fmt
args: --all -- --check
run_clippy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/target-tauri/src-tauri
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