-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (47 loc) · 1.17 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
on:
push:
branches:
- main
tags:
- v*
pull_request:
name: Check
jobs:
check:
name: Check and lint
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
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
- name: Check build
uses: actions-rs/cargo@v1
with:
command: check
args: --all
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check lints
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- -D warnings
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
- name: Run test suite
run: cd tests && python3 test.py