Update README.md #31
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: Rust | |
on: | |
push: | |
branches: [ "master", "dev" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust Version Info | |
run: | | |
cargo version | |
rustc --version | |
cargo clippy --version | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Build | |
run: cargo build --all-targets --all-features # --locked TODO | |
- name: Test | |
run: cargo test --locked --all-targets --all-features | |
- name: Clippy | |
run: cargo clippy --locked --all-targets --all-features -- -D warnings | |
- name: Documentation | |
run: cargo doc --locked --no-deps --all-features | |
- name: Doc Test | |
run: cargo test --locked --doc |