-
-
Notifications
You must be signed in to change notification settings - Fork 13
34 lines (27 loc) · 881 Bytes
/
ci.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
name: Continous Integration
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLORS: always
jobs:
clippy_fmt_docs_check:
name: Check clippy lints, formatting and docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
- name: Check without any feature
run: cargo clippy --no-default-features -- --deny clippy::all -D warnings
- name: Verify that docs compile
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
- name: Check with all features enabled
run: cargo clippy --all-features -- --deny clippy::all -D warnings
- name: Run tests
run: cargo test --all-features