Skip to content

Commit fe3610d

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

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
steps:
18+
- uses: actions/checkout@v5
19+
- name: Check compilation (no warnings)
20+
run: RUSTFLAGS="-D warnings" cargo build
21+
- name: Check test compilation (no warnings)
22+
run: RUSTFLAGS="-D warnings" cargo test

0 commit comments

Comments
 (0)