-
Notifications
You must be signed in to change notification settings - Fork 13
53 lines (51 loc) · 1.36 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on:
push:
branches: [main]
pull_request:
branches: [main]
name: CI
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run cargo build (trace only)
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features trace
- name: Run cargo build (logs only)
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features logs
- name: Run cargo build (metrics only)
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features metrics
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features
- name: Build tracing example
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path examples/tracing/Cargo.toml