-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (33 loc) · 1.22 KB
/
cont_integration.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
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Set default toolchain
run: $HOME/.cargo/bin/rustup default stable
- name: Set profile
run: $HOME/.cargo/bin/rustup set profile minimal
- name: Fmt
run: cargo fmt -- --check --verbose
- name: Build
run: cargo build --verbose --all-features
- name: Test
run: cargo test --verbose --all-features
- run: cargo check --verbose --no-default-features --features=blocking
- run: cargo check --verbose --no-default-features --features=async
- run: cargo check --verbose --no-default-features --features=async-https
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo clippy --all-targets --no-default-features --features=blocking -- -D warnings
- run: cargo clippy --all-targets --no-default-features --features=async -- -D warnings
- run: cargo clippy --all-targets --no-default-features --features=async-https -- -D warnings