File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Cargo
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+
9+ jobs :
10+ build :
11+ name : Build & Test
12+ strategy :
13+ matrix :
14+ os : ['ubuntu-latest']
15+ runs-on : ${{ matrix.os }}
16+ steps :
17+ - name : Install dependencies
18+ run : sudo apt-get -y install xorg-dev
19+ - uses : actions/checkout@v2
20+ - name : Build
21+ run : cargo build --verbose
22+ env :
23+ RUSTFLAGS : -D warnings
24+ RUST_BACKTRACE : 1
25+ - name : Run tests
26+ uses : gabrielbb/xvfb-action@v1
27+ with :
28+ run : cargo test --all --lib --verbose
29+
30+ docs :
31+ name : Docs
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : Install dependencies
35+ run : sudo apt-get -y install xorg-dev
36+ - uses : actions/checkout@v2
37+ - name : Docs
38+ run : cargo doc --all
39+ env :
40+ RUSTDOCFLAGS : -D warnings
41+
42+ lint :
43+ name : Lint
44+ runs-on : ubuntu-latest
45+ steps :
46+ - name : Install dependencies
47+ run : sudo apt-get -y install xorg-dev
48+ - uses : actions/checkout@v2
49+ - uses : actions-rs/toolchain@v1
50+ with :
51+ toolchain : 1.60.0
52+ profile : minimal
53+ components : clippy, rustfmt
54+ override : true
55+ - name : Cache cargo registry
56+ uses : actions/cache@v1
57+ with :
58+ path : ~/.cargo/registry
59+ key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
60+ - name : Run clippy
61+ uses : actions-rs/cargo@v1
62+ with :
63+ command : clippy
64+ args : --all --tests
65+ env :
66+ RUSTFLAGS : -D warnings
67+ - name : Check formating
68+ uses : actions-rs/cargo@v1
69+ with :
70+ command : fmt
71+ args : --all -- --check
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments