Debian Codegraph @

.github/workflows/rust.yml

raw symbols SCIP
1 on: [push, pull_request]
2
3 name: Rust
4
5 jobs:
6 check:
7 name: Cargo Check
8 runs-on: ubuntu-latest
9 steps:
10 - uses: actions/checkout@v2
11 - uses: actions-rs/toolchain@v1
12 with:
13 profile: minimal
14 toolchain: 1.66
15 override: true
16 - uses: actions-rs/cargo@v1
17 with:
18 command: check
19
20 test:
21 name: Test Suite
22 runs-on: ubuntu-latest
23 steps:
24 - uses: actions/checkout@v2
25 - uses: actions-rs/toolchain@v1
26 with:
27 profile: minimal
28 toolchain: stable
29 override: true
30 - uses: actions-rs/cargo@v1
31 with:
32 command: test
33 args: --all-targets --all-features
34
35 doc:
36 name: Documentation
37 runs-on: ubuntu-latest
38 steps:
39 - uses: actions/checkout@v2
40 - uses: actions-rs/toolchain@v1
41 with:
42 profile: minimal
43 toolchain: stable
44 override: true
45 - uses: actions-rs/cargo@v1
46 with:
47 command: test
48 args: --doc
49
50 fmt:
51 name: Format
52 runs-on: ubuntu-latest
53 steps:
54 - uses: actions/checkout@v2
55 - uses: actions-rs/toolchain@v1
56 with:
57 profile: minimal
58 toolchain: stable
59 override: true
60 - run: rustup component add rustfmt
61 - uses: actions-rs/cargo@v1
62 with:
63 command: fmt
64 args: --all -- --check
65
66 clippy:
67 name: Clippy Lints
68 runs-on: ubuntu-latest
69 steps:
70 - uses: actions/checkout@v2
71 - uses: actions-rs/toolchain@v1
72 with:
73 profile: minimal
74 toolchain: stable
75 override: true
76 - run: rustup component add clippy
77 - uses: actions-rs/cargo@v1
78 with:
79 command: clippy
80 args: --all-targets --all-features -- --warn warnings --warn clippy::all --warn clippy::pedantic --warn clippy::cargo --warn clippy::nursery