-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (34 loc) · 882 Bytes
/
cargo.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
name: Cargo check
on:
pull_request:
branches:
- '*'
push:
branches:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/[email protected]
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Run tests
run: cargo test --verbose
- name: Audit Dependencies
run: cargo audit
- name: Install rustfmt
run: rustup component add rustfmt --toolchain ${{ matrix.toolchain }}
- name: Check formatting
run: cargo fmt -- --check
- name: Install clippy
run: rustup component add clippy --toolchain ${{ matrix.toolchain }}
- name: Run Clippy
run: cargo clippy --all --all-targets -- -D warnings