forked from dspicher/ur-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.15 KB
/
rust.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
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Version
run: cargo --version
- name: Format
run: cargo fmt -- --check
- name: Install cargo-sort-ck
run: cargo install cargo-sort-ck
- name: Check sorted dependencies
run: cargo sort-ck
- name: Check README is up-to-date
run: cargo install cargo-rdme && cargo rdme --check
- name: Check
run: cargo check --locked
- name: Clippy
run: cargo clippy --all --all-targets --all-features -- -Dwarnings -D clippy::pedantic -D clippy::dbg-macro -D clippy::indexing-slicing -A clippy::missing-panics-doc
- name: Build
run: cargo build
- name: Run tests
run: cargo test
- name: Lint fuzz
working-directory: ./fuzz
run: |
cargo fmt -- --check
cargo sort-ck
cargo check
cargo clippy --all --all-targets --all-features -- -Dwarnings -D clippy::pedantic -D clippy::dbg-macro -D clippy::indexing-slicing -A clippy::missing-panics-doc