Skip to content

Commit f1d4e79

Browse files
add ci workflow
1 parent afb8da5 commit f1d4e79

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build, Clippy (Pedantic), Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build-clippy-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install Rust
18+
uses: dtolnay/rust-toolchain@master
19+
with:
20+
toolchain: stable
21+
22+
- name: Build (fail on warnings)
23+
run: cargo build --verbose
24+
env:
25+
RUSTFLAGS: "-D warnings"
26+
27+
- name: Run Clippy (pedantic, fail on warnings)
28+
run: cargo clippy --all-targets --all-features -- -D warnings -W clippy::pedantic
29+
30+
- name: Run tests
31+
run: cargo test --verbose

0 commit comments

Comments
 (0)