-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.04 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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy, rustfmt
- name: Check format
run: cargo fmt --all -- --check
- name: Check with clippy
run: cargo clippy --all
- name: Build without features
run: cargo build --no-default-features
- name: Build
run: cargo build --all --verbose
- name: Run tests
run: cargo test --all --verbose
# examples
- name: Check examples format
run: cargo fmt --all -- --check
working-directory: ./examples
- name: Check examples with clippy
run: cargo clippy --all
working-directory: ./examples
- name: Build examples
run: cargo build --all --verbose
working-directory: ./examples