This repository was archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (75 loc) · 2.13 KB
/
Copy pathci.yml
File metadata and controls
90 lines (75 loc) · 2.13 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
on:
push:
branches: ['main']
pull_request:
branches: ['main']
name: Continuous Integration
jobs:
lint-ts:
name: Lint Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
test-ts:
name: Test Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn test
lint-rust:
name: Lint Backend
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Run cargo check
run: cargo check
working-directory: src-tauri
- name: Run cargo fmt
run: cargo fmt --all -- --check
working-directory: src-tauri
- name: Run cargo clippy
run: cargo clippy -- -D warnings
working-directory: src-tauri
test-rust:
name: Test Backend
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Run cargo test
run: cargo test
working-directory: src-tauri