-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (60 loc) · 1.78 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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
push:
branches:
- main
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- --deny warnings
# run tests in each crate with cargo-make
feature_check_and_test:
runs-on: ubuntu-latest
steps:
- uses: davidB/rust-cargo-make@v1
- uses: actions/checkout@v2
- name: Install wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
- name: feature_check
run: (cd fe2o3-amqp && cargo make feature_check)
- name: test serde_amqp
run: (cd serde_amqp && cargo make test)
- name: test fe2o3-amqp-types
run: (cd fe2o3-amqp-types && cargo make test)
- name: test fe2o3-amqp
run: (cd fe2o3-amqp && cargo make test)
- name: test fe2o3-amqp-cbs
run: (cd fe2o3-amqp-cbs && cargo make test)
- name: test fe2o3-amqp-ext
run: (cd fe2o3-amqp-ext && cargo make test)
- name: test fe2o3-amqp-management
run: (cd fe2o3-amqp-management && cargo make test)
- name: test fe2o3-amqp-ws
run: (cd fe2o3-amqp-ws && cargo make test)
- name: check examples
run: (cd examples && cargo make check)