backend: libs: autopilot: Fix swapped focus/zoom default comments #917
This file contains hidden or 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: Build, Check, and Test | |
| on: | |
| push: | |
| pull_request: | |
| # Run manually | |
| workflow_dispatch: | |
| # NOTE: caches may be removed if not run weekly | |
| # -> may be worth scheduling for every 6 days | |
| jobs: | |
| build-check-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Use cached dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: "${{ hashFiles('**/Cargo.lock') }}" | |
| shared-key: "shared" | |
| - name: Install build dependencies - Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-unknown-linux-musl,aarch64-unknown-linux-musl,armv7-unknown-linux-musleabihf | |
| - name: Install build dependencies - Cross | |
| run: cargo install cross | |
| - name: Install build dependencies - NPM | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "*" | |
| cache-dependency-path: "frontend/package-lock.json" | |
| cache: "npm" | |
| - name: Install rustfmt | |
| run: rustup component add rustfmt | |
| - name: Check style | |
| run: cargo fmt --check | |
| - name: Build | |
| run: ./build.sh --all-features --locked --verbose | |
| - name: Run frontend self-checks | |
| working-directory: frontend | |
| run: npm run selfcheck | |
| - name: Install clippy | |
| run: rustup component add clippy | |
| - name: Check clippy | |
| run: cargo clippy --all-features --locked | |
| - name: Build tests | |
| run: cargo test --no-run --all-features --locked --verbose | |
| - name: Run tests | |
| run: cargo test --all-features --locked --verbose |