Merge pull request #10 from Rayzeq/0.1.3 #17
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: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check_validity: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# /!\ won't test every combination with more than 2 features | |
features: | |
- "\"\"" | |
- alloc | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install components | |
run: rustup component add rustfmt && rustup component add clippy | |
- name: Build | |
run: cargo build --no-default-features --features=${{ matrix.features }} --verbose | |
- name: Run tests | |
run: cargo test --no-default-features --features=${{ matrix.features }} --verbose | |
- name: Lint | |
run: | | |
cargo fmt -- --check | |
cargo clippy -- -D warnings | |
- name: Doc | |
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-default-features --features=${{ matrix.features }} |