Skip to content

Commit

Permalink
Add github workflows for rust and typescript lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfs committed Sep 2, 2024
1 parent 16cede1 commit 782e795
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: radicle-desktop
on: push

jobs:
lint-ts:
name: lint typescript
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20.9.0"
- uses: actions/checkout@v4
- run: npm ci
- run: npm run check
lint-rust:
name: lint rust
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src-tauri
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri -> target
- name: Run clippy
run: cargo clippy --all --tests
- name: Check formatting
run: cargo fmt --all --check

0 comments on commit 782e795

Please sign in to comment.