-
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (63 loc) · 1.75 KB
/
test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Test
on:
push:
branches-ignore: ['release']
pull_request:
workflow_call:
jobs:
clippy:
name: Lint backend
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Setup Cargo dependency cache
uses: Swatinem/rust-cache@v2
with:
shared-key: shared
save-if: false
- name: Run Clippy
run: cargo clippy
env:
RUSTFLAGS: -Dwarnings
eslint:
name: Lint frontend
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm install
- name: Run ESLint on changed files
uses: tj-actions/eslint-changed-files@v21
prettier:
name: Check formatting
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Prettier on changed files
uses: creyD/prettier_action@v4.3
with:
dry: true
only_changed: true
prettier_version: 3.1.1
prettier_options: --check .
clean_node_folder: false
tauri:
name: Build app
uses: ./.github/workflows/build-tauri-app.yml
secrets:
updaterKey: ${{ secrets.TAURI_UPDATER_KEY }}
updaterKeyPassword: ${{ secrets.TAURI_UPDATER_KEY_PASSWORD }}