Skip to content

Commit ae36393

Browse files
committed
Add github workflows for rust and typescript lint checks
1 parent 16cede1 commit ae36393

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/check.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: radicle-desktop
2+
on: push
3+
4+
jobs:
5+
lint-ts:
6+
name: lint typescript
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Setup Node
10+
uses: actions/setup-node@v4
11+
with:
12+
node-version: "20.9.0"
13+
- uses: actions/checkout@v4
14+
- run: npm ci
15+
- run: npm run check
16+
lint-rust:
17+
name: lint rust
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
working-directory: ./src-tauri
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: dtolnay/rust-toolchain@stable
25+
- uses: Swatinem/rust-cache@v2
26+
with:
27+
workspaces: src-tauri -> target
28+
- uses: awalsh128/cache-apt-pkgs-action@latest
29+
with:
30+
packages: libgtk-3-dev libsoup-3.0-dev
31+
version: 1.0
32+
- name: Run clippy
33+
run: cargo clippy --all --tests
34+
- name: Check formatting
35+
run: cargo fmt --all --check

0 commit comments

Comments
 (0)