[DONOTMERGEYET] Make compilation to fail on warnings #4
Workflow file for this run
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 | |
| "on": | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| basic-compilation: | |
| name: Compilation with no warnings | |
| runs-on: ubuntu-latest | |
| container: | |
| image: quay.io/keylime/keylime-ci:latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Check compilation (no warnings) | |
| run: RUSTFLAGS="-D warnings" cargo build | |
| - name: Check test compilation (no warnings) | |
| run: RUSTFLAGS="-D warnings" cargo test | |
| - name: Check clippy errors (no warnings included) | |
| run: cargo clippy --all-targets -- -D clippy::all -D warnings | |
| - name: Check clippy test errors (no warnings included) | |
| run: cargo clippy --all-targets --tests -- -D clippy::all -D warnings |