Update timer_loop.rs #7
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: Rust CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Check, test, and lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Build | |
| run: cargo build --all --verbose | |
| - name: Run tests | |
| run: cargo test --all --verbose | |
| - name: Lint (Clippy) | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Doc build | |
| run: cargo doc --no-deps --verbose |