update units #12
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: | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set toolchain | |
run: | | |
rustup set profile minimal | |
rustup override set 1.75.0 | |
- uses: Swatinem/[email protected] | |
- name: Rustfmt check | |
run: | | |
rustup component add rustfmt | |
cargo fmt -- --check | |
- name: Clippy check | |
run: | | |
rustup component add clippy | |
cargo clippy --all-targets --all-features -- -D warnings | |
- name: Test check | |
run: cargo test --all-features --all-targets |