-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 945 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
version: 1.0
- name: Run clippy
run: cargo clippy --all --tests -- -Dwarnings
- name: Check formatting
run: cargo fmt --all --check