Update docs #6
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"] | |
pull_request: | |
branches: ["master"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: "cargo build" | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
cargo-fmt: | |
name: "cargo fmt" | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Check formatting" | |
run: rustup component add rustfmt | |
- run: cargo fmt --all --check | |
cargo-test: | |
name: "cargo test" | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Run tests" | |
run: cargo test |