Minor formatting/stylistic adjustments to examples #13
Workflow file for this run
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: Static Analysis | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'az_analyze_image/**' | |
- 'examples/**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'az_analyze_image/**' | |
- 'examples/**' | |
workflow_dispatch: | |
jobs: | |
lint-and-audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust Environment | |
run: | | |
# Install rustup | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
. "$HOME/.cargo/env" | |
# Install clippy and rustfmt | |
rustup component add clippy rustfmt | |
# Install cargo-audit | |
cargo install cargo-audit | |
- name: clippy | |
run: cargo clippy -- -D warnings | |
- name: rustfmt | |
run: cargo fmt -- --check | |
- name: cargo-audit | |
run: cargo audit |