-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (30 loc) · 1 KB
/
rust.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: Rust
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@cargo-hack
- name: Test feature powerset
run: cargo hack --feature-powerset --exclude-features "default nightly-tests" --exclude-no-default-features test
- name: Test workspace
run: cargo test --workspace --features "unimock"
- name: Doctest
run: cargo test --doc --features "unimock"
- name: Clippy
run: cargo clippy --features "unimock" -- -D warnings
- name: Build examples
run: cargo build --all
test-nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: taiki-e/install-action@cargo-hack
- name: Test nightly features
run: cargo hack --feature-powerset --exclude-features "default boxed-futures use-boxed-futures" --exclude-no-default-features test