-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 955 Bytes
/
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
name: CI
on:
push:
branches: [ main ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: fmt
run: cargo fmt -- --check
- name: clippy without default-features
run: cargo clippy --no-default-features -- -D warnings
- name: clippy with rand
run: cargo clippy --no-default-features --features rand -- -D warnings
- name: clippy with async-std
run: cargo clippy --no-default-features --features async-std -- -D warnings
- name: Run tests with default-features
run: cargo test --verbose
- name: Run tests with async-std
run: cargo test --no-default-features --features async-std,rand --verbose