-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.19 KB
/
partial-client-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
name: Rust tests
on:
pull_request:
branches:
- test
jobs:
cargo_test:
name: Cargo Lint & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Linux packages
run: |
sudo apt update && sudo apt install -y \
libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
libglib2.0-dev \
libssl-dev \
libgtk-3-dev \
libappindicator3-dev \
librsvg2-dev \
libappindicator-dev \
libgdk3.0-cil \
libatk1.0-dev
- name: Update local toolchain
run: |
rustup update
rustup component add clippy
rustup install nightly
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
cargo clippy --version
- name: Lint
working-directory: ./client/src-tauri
run: |
cargo fmt -- --check
cargo clippy -- -D warnings
- name: Test
working-directory: ./client/src-tauri
run: |
cargo check
cargo test --all