Skip to content

Commit a3b1702

Browse files
committed
Make compilation to fail on warnings
Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent 07463b8 commit a3b1702

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Rust
3+
4+
"on":
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
basic-compilation:
15+
name: Compilation with no warnings
16+
runs-on: ubuntu-latest
17+
container:
18+
image: quay.io/keylime/keylime-ci:latest
19+
steps:
20+
- uses: actions/checkout@v5
21+
- name: Check compilation (no warnings)
22+
run: RUSTFLAGS="-D warnings" cargo build
23+
- name: Check test compilation (no warnings)
24+
run: RUSTFLAGS="-D warnings" cargo test
25+
- name: Check clippy errors (no warnings included)
26+
run: cargo clippy --all-targets -- -D clippy::all -D warnings
27+
- name: Check clippy test errors (no warnings included)
28+
run: cargo clippy --all-targets --tests -- -D clippy::all -D warnings

0 commit comments

Comments
 (0)