Merge pull request #24 from krojew/dependabot/cargo/itertools-0.14.0 #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous integration | |
on: [ push, pull_request ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install minimal toolchain with clippy and rustfmt | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
# run tests separately due to different default for the async feature | |
- name: Run springtime-di tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-targets -p springtime-di | |
- name: Run remaining springtime tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-targets --workspace --exclude springtime-di | |
- name: Format check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Clippy check | |
run: cargo install cargo-hack && cargo hack --feature-powerset --exclude-features async clippy --locked | |
- name: Check async | |
run: cargo run --example 09-async --features async |