chore(ci): run integration tests for no-std #114
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: -Dwarnings | |
RUST_BACKTRACE: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rustc --version | |
- run: cargo build --all-targets --all-features | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rustup component add rustfmt | |
- run: cargo fmt --version | |
- run: cargo fmt -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rustup component add clippy | |
- run: cargo clippy --version | |
- run: cargo clippy --features i64 | |
- run: cargo clippy --all-targets --features i64 | |
- run: cargo clippy --all-targets --features i64,i128 | |
- run: cargo clippy --all-targets --all-features | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rustc --version | |
- run: cargo test --features i64 | |
- run: cargo test --features i128 | |
- run: cargo test --no-default-features --lib --test it --features i64 | |
- run: cargo test --no-default-features --lib --test it --features i128 | |
- run: cargo test --no-default-features --lib --test it --features std,i64 | |
- run: cargo test --no-default-features --lib --test it --features serde,i64 | |
- run: cargo test --no-default-features --lib --test it --features i64,parity | |
- run: cargo test --no-default-features --lib --test it --features i128,parity | |
- run: cargo test --all-features | |
run-example: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: cargo run --example usage --features i64 |