add device_type helpers #8
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: Check | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check formatting | |
run: cargo fmt --check | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
features: ["", "alloc derive", "std derive"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Clippy | |
run: cargo clippy --features "${{ matrix.features }}" | |
- name: Run tests | |
run: cargo test --features "${{ matrix.features }}" --message-format short |