-
Notifications
You must be signed in to change notification settings - Fork 72
Make compilation to fail on warnings #1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,28 @@ | ||||||
| --- | ||||||
| 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@v6 | ||||||
| - name: Check compilation (no warnings) | ||||||
| run: RUSTFLAGS="-D warnings" cargo build | ||||||
| - name: Check test compilation (no warnings) | ||||||
| run: RUSTFLAGS="-D warnings" cargo test | ||||||
|
Comment on lines
+23
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The job is titled "Compilation with no warnings" and the step is named "Check test compilation", but - - name: Check test compilation (no warnings)
- run: RUSTFLAGS="-D warnings" cargo test
+ - name: Check test compilation (no warnings)
+ run: RUSTFLAGS="-D warnings" cargo test --no-run🤖 Prompt for AI Agents |
||||||
| - name: Check clippy errors (no warnings included) | ||||||
| run: cargo clippy --all-features --all-targets -- -D clippy::all -D warnings | ||||||
| - name: Check clippy test errors (no warnings included) | ||||||
| run: cargo clippy --all-features --all-targets --tests -- -D clippy::all -D warnings | ||||||
|
Comment on lines
+10
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider folding these checks into the existing
🤖 Prompt for AI Agents
Comment on lines
+27
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Redundant clippy invocation.
♻️ Proposed fix- - name: Check clippy test errors (no warnings included)
- run: cargo clippy --all-features --all-targets --tests -- -D clippy::all -D warnings📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workflow name collides with existing
rust.yml.The existing
.github/workflows/rust.ymlalso usesname: Rust. Having two workflows with the same display name makes status checks and PR UI ambiguous. Consider a distinct name such asNo-Warnings Compilation.📝 Committable suggestion
🤖 Prompt for AI Agents