-
-
Notifications
You must be signed in to change notification settings - Fork 331
51 lines (46 loc) · 1.19 KB
/
Copy pathlint.yml
File metadata and controls
51 lines (46 loc) · 1.19 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Lint
on:
push:
branches: ['main']
pull_request:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
rust:
name: Rust
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
# refer: https://v2.tauri.app/start/prerequisites/#linux
- run: |
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- uses: actions/checkout@v7
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo check
- run: cargo clippy -- -D warnings
ui:
name: UI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- uses: actions/cache@v6
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
- run: bun install --frozen-lockfile
- name: Lint UI
run: bun lint:ui