-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 923 Bytes
/
build.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
# initial source: https://gist.github.com/domnikl/ccb8d0b82056fbe5cf7f4f145ac7f44b
name: Build and Test
on:
push:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install rustup
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: install check-all-fetures
run: cargo install cargo-all-features
- name: cargo check
env:
RUSTFLAGS: -D warnings
run: cargo check-all-features
- name: rustfmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all --tests -- -D warnings
- name: cargo test
run: cargo test-all-features
- name: cargo test on release
run: cargo test-all-features --release